LinuxCommandLibrary

ptpython3

Enhanced interactive Python 3 REPL

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 the Python 3 variant of ptpython, an enhanced interactive REPL with syntax highlighting, autocompletion, multi-line editing, and vi/emacs key bindings built on the prompt_toolkit library.
On modern systems where Python 3 is the default, ptpython and ptpython3 are typically identical. The separate binary exists for systems where both Python 2 and Python 3 are installed side by side.

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community