2022-06-14 08:23:23 -04:00
|
|
|
# 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:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`ptpython {{[-i|--interactive]}} {{path/to/file.py}}`
|
2022-06-14 08:23:23 -04:00
|
|
|
|
|
|
|
- Open the menu:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<F2>`
|
2022-06-14 08:23:23 -04:00
|
|
|
|
|
|
|
- Open the history page:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<F3>`
|
2022-06-14 08:23:23 -04:00
|
|
|
|
|
|
|
- Toggle paste mode:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<F6>`
|
2022-06-14 08:23:23 -04:00
|
|
|
|
|
|
|
- Quit:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<Ctrl d>`
|