How to Install Python idle IDE on Fedora 24 Workstation
In this tutorial we are going to learn how to install the Python idle IDE on Fedora 24 Workstation. We are going to install the idle IDE for both python 2 and python 3.
Install Python idle for python 3
IDLE editor for python 3 in fedora 24 provides by the python3-tools package. We can install python3-tools on fedora using dnf command.
Open the Linux terminal and execute
dnf -y install python3-tools
Install idle ide for python 2
Idle for python 2 provides by the python-tools package.
dnf -y install python-tools
Open Python IDLE on Fedora Linux
There is no menu shortcut to launch idle on fedora by default. But we can open idle from the Linux command line.
To open idle3, type
idle3&
To open idle2, type
idle&
Add IDLE to Gnome Application Menu
Do the following steps to add the idle ide to Fedora gnome activities menu.
Download idle icon image
wget -O /usr/share/icons/idle.png https://s3-us-west-2.amazonaws.com/wsldpshare/images/idle.png
Create a file called idle3.desktop inside the /usr/share/applications directory (If want to use idle 2 create a file called idle2.desktop).
touch /usr/share/applications/idle3.desktop
Open the idle3.desktop file and add the following configuration.
[Desktop Entry]Version=1.0
Type=Application
Name=IDLE 3
GenericName=Text Editor
Comment=Interactive Editor for Python Programming
Exec=idle3
Terminal=false
MimeType=text/plain;
Icon=/usr/share/icons/idle.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
For idle 2 change parameters name and Exec as follow.
Name=IDLE 2
Exec=idle
Now you can launch the idle editor from the fedora gnome activities menu.
The Fedora idle IDE includes both interactive python shell and the python text editor. You can run python script within the editor by pressing F5 key on the keyboard.