ptpython, ptpython3: add page (#8125)

pull/1/head
Ethan Kinnear 2022-06-14 08:23:23 -04:00 committed by GitHub
parent 5117156d2c
commit 127e12d609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

32
pages/common/ptpython.md Normal file
View File

@ -0,0 +1,32 @@
# 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`

View File

@ -0,0 +1,7 @@
# ptpython3
> This command is an alias of `ptpython`.
- View documentation for the original command:
`tldr ptpython`