From 127e12d609e0f0db868070013ea1a17998485707 Mon Sep 17 00:00:00 2001 From: Ethan Kinnear Date: Tue, 14 Jun 2022 08:23:23 -0400 Subject: [PATCH] ptpython, ptpython3: add page (#8125) --- pages/common/ptpython.md | 32 ++++++++++++++++++++++++++++++++ pages/common/ptpython3.md | 7 +++++++ 2 files changed, 39 insertions(+) create mode 100644 pages/common/ptpython.md create mode 100644 pages/common/ptpython3.md diff --git a/pages/common/ptpython.md b/pages/common/ptpython.md new file mode 100644 index 000000000..823e5ba20 --- /dev/null +++ b/pages/common/ptpython.md @@ -0,0 +1,32 @@ +# ptpython + +> A better Python REPL. +> More information: . + +- 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` diff --git a/pages/common/ptpython3.md b/pages/common/ptpython3.md new file mode 100644 index 000000000..3ae2eb8a9 --- /dev/null +++ b/pages/common/ptpython3.md @@ -0,0 +1,7 @@ +# ptpython3 + +> This command is an alias of `ptpython`. + +- View documentation for the original command: + +`tldr ptpython`