DOKK / manpages / debian 12 / idle / idle.1.en
IDLE(1) General Commands Manual IDLE(1)

IDLE - An Integrated DeveLopment Environment for Python

idle [ -dins ] [ -t title ] [ file ...]

idle [ -dins ] [ -t title ] ( -c cmd | -r file ) [ arg ...]

idle [ -dins ] [ -t title ] - [ arg ...]

This manual page documents briefly the idle command. This manual page was written for Debian because the original program does not have a manual page. For more information, refer to IDLE's help menu.

IDLE is an Integrated DeveLopment Environment for Python. IDLE is based on Tkinter, Python's bindings to the Tk widget set. Features are 100% pure Python, multi-windows with multiple undo and Python colorizing, a Python shell window subclass, a debugger. IDLE is cross-platform, i.e. it works on all platforms where Tk is installed.

Print this help message and exit.
Run IDLE without a subprocess (see Help/IDLE Help for details).

The following options will override the IDLE 'settings' configuration:

Open an edit window.
Open a shell window.

The following options imply -i and will open a shell:

Run the command in a shell, or
Run script from file.
Enable the debugger.
Run $IDLESTARTUP or $PYTHONSTARTUP before anything else.
Set title of shell window.

A default edit window will be bypassed when -c, -r, or - are used.

[arg]* and [file]* are passed to the command (-c) or script (-r) in sys.argv[1:].

Open an edit window or shell depending on IDLE's configuration.
idle foo.py foobar.py
Edit the files, also open a shell if configured to start with shell.
idle -est "Baz" foo.py
Run $IDLESTARTUP or $PYTHONSTARTUP, edit foo.py, and open a shell window with the title "Baz".
idle -c "import sys; print sys.argv" "foo"
Open a shell window and run the command, passing "-c" in sys.argv[0] and "foo" in sys.argv[1].
idle -d -s -r foo.py "Hello World"
Open a shell window, run a startup script, enable the debugger, and run foo.py, passing "foo.py" in sys.argv[0] and "Hello World" in sys.argv[1].
Open a shell window, run the script piped in, passing '' in sys.argv[0] and "foobar" in sys.argv[1].

python(1).

Various.

21 September 2004