- How to Install IDLE Python IDE on Ubuntu 22.04?
- What is the IDLE IDE of Python?
- How to Install IDLE Python IDE on Ubuntu 22.04?
- How to Use IDLE Python IDE on Ubuntu 22.04?
- Write a Simple Code
- How to Remove IDLE Python IDE From Ubuntu 22.04?
- Conclusion
- How to Install Python IDLE in Linux
- IDLE Features
- Install Python IDLE IDE in Linux
- Writing First Python Program Using IDLE
- Установка IDLE Python в Ubuntu 20.04
- Установка IDLE Python в Ubuntu 20.04
- Создание первой программы в IDLE
- Выводы
- Install Python3 and IDLE on Ubuntu 18.04
- Installing Python 3
- Installing Python 3.6:
- Installing Python 3.7:
- Installing Python 3 IDLE for Developing Python Program
- For Python 3.6:
- For Python 3.7:
- Using IDLE to Develop a Python 3 Program
- Customizing Python 3 IDLE
- About the author
- Shahriar Shovon
How to Install IDLE Python IDE on Ubuntu 22.04?
IDLE is an Integrated Development Environment (IDE) for Python, a simple, easy-to-use program that allows users to write and run Python code. IDLE provides several useful features for working with Python, including a powerful editor, an interactive shell, and tools for debugging and profiling your code.
It is a great way to get started with Python, whether you are a beginner or an experienced programmer. If you are new to Python, you must use IDLE (Integrated Development and Learning Environment) IDE for Python. It is easy to use and does come with only the required features.
The content of this article is mentioned below:
- What is the IDLE IDE of Python?
- How to Install IDLE Python IDE on Ubuntu 22.04?
- How to Use IDLE Python IDE on Ubuntu 22.04?
- How to Remove IDLE Python IDE From Ubuntu 22.04?
What is the IDLE IDE of Python?
IDLE is included when you install Python on Windows or Mac, so it is cross-platform, and Linux users need to install it, which can be done using the package manager of the respective distribution.
It comes with a few basic functionalities on Linux that include:
- Code editor with syntax highlighting & correction, automatic indent, and much more.
- Smart debugger with stepping, breakpoints, and all the functionalities of a good IDE.
You can learn more about it by going through the official documentation.
How to Install IDLE Python IDE on Ubuntu 22.04?
Python IDLE IDE is available on the official repository of Ubuntu 22.04, and the following steps can be performed to install it on Ubuntu 22.04.
Step 1: Update the System Repositories
Before installing any package, it is recommended to update the system’s packages so that the newest
It’ll take a while to update the system repositories, depending on how long since the last update was installed.
Step 2: Install IDLE Python IDE
When the system repositories are updated, install the IDLE Python IDE using this command, and you’ll be asked to press “Y” to continue the process, as seen below.
After a few seconds, the installation process will be completed, and you have installed IDLE Python IDE on your system.
How to Use IDLE Python IDE on Ubuntu 22.04?
After installing the IDLE Python IDE, it is time to start coding a simple program. To do that, you’ll need to launch it first using this command:
it will open up the Python shell and show the version of Python being run.
Write a Simple Code
We’ll test it using a simple program to print output, as seen below.
After entering the code, when you hit the enter key, the output will be displayed right after the code’s ending, as seen in the output above.
How to Remove IDLE Python IDE From Ubuntu 22.04?
You can remove IDLE Python IDE on Ubuntu 22.04 by typing the following command below:
The installed version of IDLE IDE is removed from the system.
Conclusion
You can install Python IDLE IDE on Ubuntu 22.04 via terminal using the command “sudo apt install idle3”. The IDLE is quite easy to learn and implement, especially for users new to Python. Following this, the basic information and the installation method of IDLE are provided in this post.
How to Install Python IDLE in Linux
IDLE is an Integrated and learning environment created with Python using the GUI Tkinter toolkit. This is mainly used by beginners to get familiar with Python. IDLE is a cross-platform application that works with Mac OS, Windows, and Linux. In windows, IDLE comes by default with the installation. For Mac OS and Linux, we have to install the IDLE separately.
IDLE Features
- Interactive Interpreter.
- A multi-window text editor.
- Smart intends.
- Code coloring.
- Call tips.
- Auto indentation.
- Debugger with persistent breakpoints.
- Stepping and Viewing of local and global Namespace.
If you are a beginner to Python programming or new to programming, IDLE is the best place to start with. But if you are an experienced programmer switching from another language to Python then you may try more advanced editors like Pycharm, VScode, Sublime Text, VIM, etc.
Install Python IDLE IDE in Linux
In most of today’s modern Linux distributions, Python is installed by default and it comes with the IDLE application. However, If isn’t installed, you can install it using your default package manager as shown.
$ sudo apt install idle [On Debian/Ubuntu for Python2] $ sudo apt-get install idle3 [On Debian/Ubuntu for Python3] $ sudo yum install python3-tools [On CentOS/RHEL and Fedora]
Once the installation is completed type «idle» from the terminal or go to start menu → type «idle» → Launch application.
When you open the IDLE, the interactive terminal will be displayed first. The interactive terminal provides auto-completion too, you can press (ALT + SPACE) for auto-completion.
Writing First Python Program Using IDLE
Go to File → New File → To open the text editor. Once the editor is opened you can write the program. To run the program from the text editor, save the file and press F5 or Run → Run Module.
To access the debugger go to Debug → Debugger. Debug mode will be on, you can debug and step through the code.
Go to Options → Configure IDLE. This will open settings windows.
That’s all for today. We have seen what IDLE is and how to install it in Linux. How to write the first python program through interpreter and Text editor. How to access the builtin debugger and how to change the settings of IDLE.
Установка IDLE Python в Ubuntu 20.04
IDLE (расшифровывается как Integrated Development and Learning Environment — Интегрированная среда для разработки и обучения) — интегрированная среда разработки на языке Python. Официально — искажение от слова IDE, но на самом деле названа в честь Эрика Айдла (Eric Idle) из комедийной комик группы Монти Пайтон.
Преимущества IDLE заключается в подсветке синтаксиса, поддержке автозаполнения и встроенным отладчиком. Поставляется вместе с Python и может использоваться на многих платформах, среди которых Windows, Mac OS, Unix-подобные ОС. В данной статье будет рассмотрена установка данной IDE в операционной системе Ubuntu 20.04 и запуск первой программы.
Установка IDLE Python в Ubuntu 20.04
Для установки сначала необходимо обновить индекс пакетов при помощи команды:
Так как интерпретатор языка программирования Python уже установлен в Ubuntu 20.04 по умолчанию, то можно сразу переходить к установке самой IDLE выполнив команду:
Для запуска IDLE можно воспользоваться 2 способами. Первый способ заключается в запуске из терминала для этого необходимо ввести команду:
Второй способ — запуск при помощи ярлыка из меню с приложениями:
Создание первой программы в IDLE
Запустите IDLE любым из вышеперечисленных способ и в открывшемся окне интерпретатора введите следующий код:
print («Первая программа созданная в IDLE!»)
Нажмите на клавишу Enter и в терминале отобразится фраза — Первая программа созданная в IDLE!
Выводы
В этой небольшой статье была рассмотрена установка IDLE в Ubuntu 20.04, а также было показано написание первой программы, выводящее строку в терминал.
Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.
Install Python3 and IDLE on Ubuntu 18.04
Python 3.6 should be installed on Ubuntu 18.04 LTS by default. Python 3.7 (still in beta) is also available in the official package repository of Ubuntu 18.04 LTS at the time of this writing. But it’s not installed by default.
In this article, I will show you how to install Python 3.6 and Python 3.7 in case you don’t have it installed. Let’s get started.
Installing Python 3
First update the package repository cache with the following command:
The package repository cache should be updated.
Installing Python 3.6:
Now to install Python 3.6, run the following command:
As you can see from the screenshot below, Python 3.6 is already installed as I said.
Installing Python 3.7:
To install Python 3.7 (still in beta at the time of this writing), run the following command:
Press y and then press .
Python 3.7 should be installed.
You can run the following command to verify whether Python 3.7 is working:
As you can see, it’s working.
Installing Python 3 IDLE for Developing Python Program
Python 3 IDLE is a graphical program for writing python 3 programs and test them. It is beginner friendly. You can always start writing Python 3 code with Python 3 IDLE. It is lightweight and has nice syntax highlighting ability.
Python 3 IDLE is available in the official package repository of Ubuntu 18.04 LTS.
For Python 3.6:
To install Python 3 IDLE for Python 3.6, run the following command:
Press y and then press to continue.
For Python 3.7:
To install Python 3 IDLE for Python 3.7, run the following command:
Using IDLE to Develop a Python 3 Program
Now that you have Python 3 IDLE installed, you can go to the Application Menu and search for Python 3 IDLE.
You should see the following icon as marked in the screenshot below, click on it.
You should see the following window. This is a Python 3.6 shell where you can execute python codes, one line at a time. It is good for testing very simple codes or logics before putting it to your Python 3 source code file.
Now to go to the graphical editor, click on File and you should see the following menu. From here you can click on Open… to open an existing Python 3 source code file in the graphical editor.
NOTE: You can also press + o to open an existing Python 3 source file in the graphical editor.
Or you can click on New File… to create a new file and open it in the graphical editor.
NOTE: You can also press + n to create a new file and open it in the graphical editor.
I created a new file, and when you do, it should look something like this. This is the graphical code editor.
Once you write some code in it, save it somewhere on your filesystem. To save the file, click on File and then click on Save as shown in the screenshot below.
NOTE: You can also save the file by pressing + s.
Now let’s write our very first Python 3 program and save it as hello.py somewhere on your filesystem.
To run the program, click on Run and then click on Run Module. You can also press F5 to run the program.
As you can see, the correct output is displayed on the console.
Customizing Python 3 IDLE
You can go to Options and then Configure IDLE to go to the configuration window of Python 3 IDLE.
Settings window should open as you can see in the screenshot below. From the Fonts/Tabs tab, you can change your IDLE font, font size, the default indentation width.
From the Highlights tab, you can change the Color Scheme or Theme of IDLE. By default, IDLE Classic is set. You can also choose IDLE Dark and IDLE New as you can see in the marked section of the screenshot below.
Once you’re done, click on OK. The changes should be applied.
IDLE Dark theme:
That’s how you install Python 3 and start learning Python 3 on Ubuntu 18.04 LTS. Thanks for reading this article.
About the author
Shahriar Shovon
Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.