IDLE (Integrated Development and Learning Environment) is a Python IDE, which is written by Python itself and usually installed as a part of Python installation in Windows. It is an ideal choice for beginners, and it is very simple to use. For those who are learning Python, such as students, it can be used as a good IDE.
Basic functions such as grammar highlighting, intelligent recognition and automatic completion are some characteristics of this IDE. You can always learn more about the functions of IDLE in the official documents.
Ubuntu and other Linux IDLE All Linux distributions, including Ubuntu, have Python installed. Even if you manually upgrade or install the Python version, the IDLE integrated development environment will not be installed by itself. You must install it manually.
For Debian, Ubuntu, Linux Mint and related distributions, open a terminal and run the following command to install IDLE:
sudo apt update
sudo apt install idle3
When the command asks if you want to install IDLE, enter Yes. After the command is completed, IDLE will be installed in your Ubuntu system.
For Fedora, RHEL, CentOS, use the following command to install it:
sudo dnf update
sudo dnf install idle3
Arch Linux users can use the following commands to install:
sudo pacman -S python tk
Installation and Operation of IDLE in Ubuntu
After starting IDLE and writing a test program to install in Ubuntu, Debian, Linux Mint and Fedora, you can find the icon of IDLE in the application menu. See the figure below:
IDLE icon in the application menu
If you are using Arch Linux, you need to run the following on the command line to start IDLE:
After starting IDLE, you should see the main window, as shown in the following figure:
IDLE editor main window
By default, it will display an interactive interface Shell, and you can execute Python code directly in each line. It works just like any Shell interpreter. And when you click enter, you will get the output, and there are three > symbols to enter the next line and execute the next command.
Run a simple Python statement in IDLE.
IDLE also allows you to open any. py file from its file menu. It will open the file in a separate window, where you can modify it and run it directly. You can use F5 or Run the Run > Run Module from the option to run it.
A Python file opened from IDLE.
The option to run the file using the menu.
The output will be displayed in a separate output window. You can debug in the output window, check the stack trace and other options to enter the specified line or file.
The output is displayed in a separate output window of IDLE.
Copyright Description：No reproduction without permission。
Knowledge sharing community for developers。
Let more developers benefit from it。
Help developers share knowledge through the Internet。