IDLE(1)
π¦ IDLE(1) π¦
okay so hi bestie π this is the IDLE(1) page, straight outta the General Commands Manual β and yes, we're doing the whole thing, every flag, every example, no skips, no cap.
β¨ NAME β¨
IDLE β An Integrated DeveLopment Environment for Python π
(that's the actual capitalisation in the name, IDLE, the "D" and "L" are just... doing their own thing, we love a stylistic choice π
)
πΈ SYNTAX πΈ
Three whole ways to summon it, here they are, verbatim:
idle [ -dins ] [ -t title ] [ file ...]
idle [ -dins ] [ -t title ] ( -c cmd | -r file ) [ arg ...]
idle [ -dins ] [ -t title ] - [ arg ...]
π DESCRIPTION π
So this manual page is a lil brief rundown of the idle command, okay? And plot twist: it was written for Debian, because the original program literally does not ship a manual page. Not one. So if you want the real deep lore, go check IDLE's own help menu π«Ά
Now, the vibe: IDLE is an Integrated DeveLopment Environment for Python. It's built on Tkinter, which is Python's bindings to the Tk widget set. And the features? All 100% pure Python, bestie. We're talking multi-windows with multiple undo, Python colorizing, a Python shell window subclass, and a debugger. She's cross-platform too β works on literally every platform where Tk is installed. iconic behavior, honestly π
π OPTIONS π
-hβ print this help message and then dip. bye π-nβ run IDLE without a subprocess. (the details live in Help/IDLE Help, go peek π§)
okay so the next little crew will override IDLE's 'settings' configuration:
-eβ open an edit window.-iβ open a shell window.
and these ones? they imply -i and will open a shell for you:
-ccmd β run the command in a shell, or-rfile β run script from file.-dβ enable the debugger π-sβ run$IDLESTARTUPor$PYTHONSTARTUPbefore anything else.-ttitle β set the title of the shell window.
heads up bestie: a default edit window gets bypassed when-c,-r, or-are used. she's not opening that for you, periodt.
and one more for the road: [arg]* and [file]* get passed to the command (-c) or script (-r) in sys.argv[1:]. iykyk π
β EXAMPLES β
idleβ open an edit window or a shell, depending on IDLE's configuration. dealer's choice β¨idle foo.py foobar.pyβ edit the files, and also open a shell if it's configured to start with a shell.idle -est "Baz" foo.pyβ run$IDLESTARTUPor$PYTHONSTARTUP, editfoo.py, and open a shell window titled"Baz". multi-tasking queen πidle -c "import sys; print sys.argv" "foo"β open a shell window and run the command, passing"-c"insys.argv[0]and"foo"insys.argv[1].idle -d -s -r foo.py "Hello World"β open a shell window, run a startup script, enable the debugger, and runfoo.py, passing"foo.py"insys.argv[0]and"Hello World"insys.argv[1].echo "import sys; print sys.argv" | idle - "foobar"β open a shell window, run the script you piped in, passing''insys.argv[0]and"foobar"insys.argv[1].
π₯ SEE ALSO π₯
π AUTHORS π
Various.
and that's the whole page, no notes π«Ά mwah π
sign-off time: this was the IDLE(1) page, dated 21 September 2004 β yeah she's vintage, she's a classic, we respect the elders π go forth and debug, bestie πΈ
π¦ where this page comes from
- debian bookworm: idle 3.11.2-1
- debian trixie: idle 3.13.5-1
- ubuntu jammy: idle 3.10.4-0ubuntu2
- ubuntu jammy: idle 3.10.6-1~22.04
- ubuntu jammy: idle 3.10.6-1~22.04.1
- ubuntu noble: idle 3.12.3-0ubuntu1
- ubuntu noble: idle 3.12.3-0ubuntu2.1
- ubuntu questing: idle 3.13.7-1
- ubuntu resolute: idle 3.14.3-0ubuntu2
- ubuntu stonking: idle 3.14.7-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms