commands.sh

ptpython

all

A better Python REPL.

More info →

Options (1)

-i, --interactiveboolean

Execute a specific Python file and start a REPL

Example: ptpython {{[-i|--interactive]}} {{path/to/file.py}}

Examples (7)

Start a REPL (interactive shell)

Execute a specific Python file

ptpython path/to/file.py

Execute a specific Python file and start a REPL

ptpython [-i|--interactive] path/to/file.py

Open the menu

<F2>

Open the history page

<F3>

Toggle paste mode

<F6>

Quit

<Ctrl d>
made by @shridhargupta | data from tldr-pages