mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 23:42:09 +02:00
32 lines
410 B
Markdown
32 lines
410 B
Markdown
# ptpython
|
|
|
|
> A better Python REPL.
|
|
> More information: <https://github.com/prompt-toolkit/ptpython>.
|
|
|
|
- Start a REPL (interactive shell):
|
|
|
|
`ptpython`
|
|
|
|
- Execute a specific Python file:
|
|
|
|
`ptpython {{path/to/file.py}}`
|
|
|
|
- Execute a specific Python file and start a REPL:
|
|
|
|
`ptpython -i {{path/to/file.py}}`
|
|
|
|
- Open the menu:
|
|
|
|
`F2`
|
|
|
|
- Open the history page:
|
|
|
|
`F3`
|
|
|
|
- Toggle paste mode:
|
|
|
|
`F6`
|
|
|
|
- Quit:
|
|
|
|
`Ctrl + D`
|