ptpython

A better Python REPL.

TLDR

Start a REPL (interactive shell)

$ ptpython
copy


Execute a specific Python file
$ ptpython [path/to/file.py]
copy


Execute a specific Python file and start a REPL
$ ptpython -i [path/to/file.py]
copy


Open the menu
$ F2
copy


Open the history page
$ F3
copy


Toggle paste mode
$ F6
copy


Quit
$ Ctrl + D
copy

Copied to clipboard