LinuxCommandLibrary

ptpython3

TLDR

Start Python 3 REPL

$ ptpython3
copy
Start with vi mode
$ ptpython3 --vi
copy
Execute file then REPL
$ ptpython3 -i [script.py]
copy

SYNOPSIS

ptpython3 [options] [file]

DESCRIPTION

ptpython3 is ptpython for Python 3. Enhanced Python 3 REPL.
The tool provides syntax highlighting. Python 3 specific version.
ptpython3 runs Python 3.

PARAMETERS

FILE

Python file to execute.
--vi
Vi editing mode.
-i
Interactive after file.

CAVEATS

Python 3 version. Same as ptpython on modern systems.

HISTORY

ptpython3 is the Python 3 variant of ptpython.

SEE ALSO

Copied to clipboard