mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 17:43:09 +00:00
Update cheatsheets
This commit is contained in:
37
ptpython
Normal file
37
ptpython
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user