All apps/ptpython

ptpython

ptpython

A better Python REPL.

Runs as ptpython|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 8 fields

Start the ptpython REPL, or run a Python script. Script arguments are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui ptpython
ptpythonExample values, fixed in this page — nothing here reaches a terminal
Basic
Vi key bindings*
--vi
TasksEach one presets the form for one job
REPL with Vi bindings
vi
Run a script, then stay in the REPL
scriptinteractive
ParametersOnly these flags are editable in the form
Script to run
Optional. Leave empty for a plain REPL.
path · positional 0
Stay interactive after the script
boolean
--interactive-i
Vi key bindings
boolean
--vi
Top-level await (asyncio loop)
boolean
--asyncio
Light background colors
boolean
--light-bg
Dark background colors
boolean
--dark-bg
Config file
path
--config-file
History file
path
--history-file
SourcesEvery flag above is checked against these
help
--vi Enable Vi key bindings -i, --interactive Start interactive shell after executing this file. --asyncio Run an asyncio event loop to support top-level "await". --light-bg Run on a light background (use dark colors for text). --dark-bg Run on a dark background (use light colors for text).…
help2026-10-27

github.com

Before it fills your prompt, Otty checks the installed ptpython against its version. A form that does not match your version is not offered.