ptpython

A better Python REPL. More information: https://github.com/prompt-toolkit/ptpython.

ptpython

ptpython path/to/file.py

ptpython -i path/to/file.py

F2

F3

F6

<Ctrl> + D