Installing IDLE on a 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.
IDLE
- 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!
Programming Locally
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:
Author
'The Codecademy Team, composed of experienced educators and tech experts, is dedicated to making tech skills accessible to all. We empower learners worldwide with expert-reviewed content that develops and enhances the technical skills needed to advance and succeed in their careers.'
Meet the full teamRelated articles
- Article
Web Programming on a Chromebook
This article will teach you how to set up for web development on Chromebooks so you can do off-platform web development projects on your Chromebook. - Article
Programming in Python on a Chromebook
This article will teach you how to run Python code on Chromebooks so you can do off-platform Python projects on your Chromebook.
Learn more on Codecademy
- Skill path
Code Foundations
Start your programming journey with an introduction to the world of code and basic concepts.Includes 5 CoursesWith CertificateBeginner Friendly4 hours - Career path
Full-Stack Engineer
A full-stack engineer can get a project done from start to finish, back-end to front-end.Includes 51 CoursesWith Professional CertificationBeginner Friendly150 hours