IDLE(1)

πŸ“¦ version 3.13.7, in debian trixie, ubuntu questing

πŸ’– IDLE β€” the manual page, but make it make sense πŸ’–

okay bestie, so this is the man page for idle β€” the Integrated DeveLopment Environment for Python, aka the lil buddy that comes with Python and lets you type code at it like it's a group chat. ✨


🌸 NAME 🌸

IDLE β€” An Integrated DeveLopment Environment for Python πŸπŸ’…


πŸŽ€ SYNTAX πŸŽ€

like, here's how you summon her:

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

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

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

three whole moods. pick ur fighter. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so this page is a brief rundown of the idle command β€” it was written for Debian specifically bc the original program literally doesn't ship a manual page. no cap. if you want the real lore, go poke around in IDLE's help menu, that's where the good stuff lives. πŸ“–βœ¨

IDLE is an Integrated DeveLopment Environment for Python. she's built on Tkinter, which is Python's bindings to the Tk widget set. her features are 100% pure Python (iconic), multi-windows with multiple undo, Python colorizing, a Python shell window subclass, and a debugger. and she's cross-platform β€” meaning she works on literally every platform where Tk is installed. main character energy fr fr. πŸ‘‘


✨ OPTIONS ✨

  • -h β€” print this help message and dip. that's it, that's the whole job. πŸ‘‹
  • -n β€” run IDLE without a subprocess. (check Help/IDLE Help for the deets, bestie β€” the manual page isn't gonna spill the tea.)

the next ones are gonna override the IDLE 'settings' configuration, so watch out πŸ‘€:

  • -e β€” open an edit window. ✏️
  • -i β€” open a shell window. 🐚

and these ones imply -i and will open a shell for you:

  • -c cmd β€” run the command in a shell, or
  • -r file β€” run script from file.
  • -d β€” enable the debugger. πŸ›
  • -s β€” run $IDLESTARTUP or $PYTHONSTARTUP before anything else. (order matters, she's particular)
  • -t title β€” set title of shell window. give her a name, she deserves one πŸ’–
heads up: a default edit window will be bypassed when -c, -r, or - are used. no edit window for u, sorry not sorry πŸ™ˆ

also: [arg]* and [file]* get passed to the command (-c) or script (-r) in sys.argv[1:]. that's the vibe check on arguments. πŸ’«


🌈 EXAMPLES 🌈

idle 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].

echo "import sys; print sys.argv" | idle - "foobar" open a shell window, run the script piped in, passing '' in sys.argv[0] and "foobar" in sys.argv[1].

literally so many ways to run her and every single one is valid πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

python(1).


πŸ“ AUTHORS πŸ“

Various. (yes, that's the whole credit. mysterious. we stan. 🧚)


aww and that's a wrap!! πŸ₯Ί this lil page is from the General Commands Manual and it's dated 21 September 2004 β€” a certified classic, still serving looks. go forth and IDLE, bestie. slay. πŸ’…βœ¨πŸŒΈ
πŸ“¦ where this page comes from