banner ad

Python IDE – IDLE

| January 13, 2013 | 0 Comments
3 Flares 3 Flares ×

IDLE is Python’s Tkinter-based Integrated DeveLopment Environment.
IDLE emphasizes a lightweight, clean design with a simple user interface.
Although it is suitable for beginners, even advanced users will find that IDLE has everything they really need to develop pure Python code.


IDLE features a multi-window text editor with multiple undo, Python colorizing, and many other capabilities, e.g. smart indent, call tips, and autocompletion.

The editor has comprehensive search functions, including searching through multiple files. Class browsers and path browsers provide fast access to code objects from a top level viewpoint without dealing with code folding.

There is a Python Shell window which features colorizing and command recall.

IDLE executes Python code in a separate process, which is restarted for each Run (F5) initiated from an editor window. The environment can also be restarted from the Shell window without restarting IDLE.

This enhancement has often been requested, and is now finally available. The magic “reload/import *” incantations are no longer required when editing and testing a module two or three steps down the import chain.

(Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer’s internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet.)

It is possible to interrupt tightly looping user code, even on Windows.

Applications which cannot support subprocesses and/or sockets can still run IDLE in a single process.

IDLE has an integrated debugger with stepping, persistent breakpoints, and call stack visibility.

There is a GUI configuration manager which makes it easy to select fonts, colors, keybindings, and startup options. This facility includes a feature which allows the user to specify additional help sources, either locally or on the web.

IDLE is coded in 100% pure Python, using the Tkinter GUI toolkit (Tk/Tcl) and is cross-platform, working on Unix, Mac, and Windows.

IDLE accepts command line arguments. Try idle -h to see the options.

If you find bugs or have suggestions, let us know about them by using the Python Bug Tracker:

IDLE has the following features:

  • coded in 100% pure Python, using the tkinter GUI toolkit
  • cross-platform: works on Windows and Unix
  • multi-window text editor with multiple undo, Python colorizing and many other features, e.g. smart indent and call tips
  • Python shell window (a.k.a. interactive interpreter)
  • debugger (not complete, but you can set breakpoints, view and step)

python IDLE command line: [-c command] [-d] [-e] [-s] [-t title] [arg] ...

-c command  run this command
-d          enable debugger
-e          edit mode; arguments are files to be edited
-s          run $IDLESTARTUP or $PYTHONSTARTUP first
-t title    set title of shell window

this arguments can be used.
If -e is used, arguments are files opened for editing and sys.argv reflects the arguments passed to IDLE itself.
Otherwise, if -c is used, all arguments are placed in sys.argv[1:…], with sys.argv[0] set to ‘-c’.
Otherwise, if neither -e nor -c is used, the first argument is a script which is executed with the remaining arguments in sys.argv[1:…] and sys.argv[0] set to the script name. If the script name is ‘-‘, no script is executed but an interactive Python session is started; the arguments are still available in sys.argv.

Download PDF
3 Flares Twitter 0 Facebook 0 Google+ 3 Pin It Share 0 LinkedIn 0 Reddit 0 StumbleUpon 0 3 Flares ×

Tags: , ,

Category: IDLE

About the Author ()

My name is John Link.I am 26 years old. My major is Computer science and technology. I am a junior programmer with Python.

Leave a Reply

Your email address will not be published. Required fields are marked *

3 Flares Twitter 0 Facebook 0 Google+ 3 Pin It Share 0 LinkedIn 0 Reddit 0 StumbleUpon 0 3 Flares ×