Installing IDLE on a ChromebookThis article will teach you how to install IDLE on Chromebooks so you can do Python projects on your Chromebook.
If you haven’t set up your local Linux environment on your Chromebook yet, please read the Programming Locally on a Chromebook article first.
Choosing a Code Editor
Depending on your project, you may be using IDLE, VS Code, or Jupyter Notebooks. We’ll explain how to install IDLE in this article.
- We will install IDLE using our terminal. We can do this with the command
sudo apt-get install.
For Python 3:
yourusername@penguin:~$ sudo apt-get install idle3
For Python 2:
yourusername@penguin:~$ sudo apt-get install idle
- The command will ask you
Do you want to continue? [Y/n]. You can type “y” and press enter to continue the installation. If you’re worried you don’t have enough room on your Chromebook for the installation, go through and delete extra images or applications you no longer need.
...Need to get 2,160 kB of archives.After this operation, 10.3MB of additional disk space will be used.Do you want to continue? [Y/n] y
- Once the installation completes, open your search and search for “idle”. If you’re using Python 3, open the version of IDLE that has “3.X” next to it. If you’re using Python 2, open the version simply labeled “IDLE”.
- It’ll open the Python shell first, so we’ll want to open a new file. Do this by opening the “File” menu and clicking “New File”.
- Add a
print()statement to your new file so we can test it.
- Now, in the new file window, open the “Run” menu and click “Run Module”.
- If you’re prompted to save the file, click “Okay” and give your file a name.
- Your python program will output in your shell!
While there are some limitations to programming locally on your Chromebook, you can still program in many languages.
The following articles will help you set up a specific language or tool on your Chromebook: