From 8742bfc456441d512cf4e40a0649dafddd4a8798 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 27 Dec 2024 18:18:24 +0100 Subject: [PATCH] bpython: add page (#15312) * bpython: add page * Update pages/common/bpython.md Co-authored-by: Wiktor Perskawiec --------- Co-authored-by: Wiktor Perskawiec --- pages/common/bpython.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/bpython.md diff --git a/pages/common/bpython.md b/pages/common/bpython.md new file mode 100644 index 000000000..d21105cc8 --- /dev/null +++ b/pages/common/bpython.md @@ -0,0 +1,21 @@ +# bpython + +> A fancy interface to the Python interpreter. +> Provides syntax highlighting and many other nice-to-haves in REPL mode. +> More information: . + +- Start a REPL (interactive shell): + +`bpython` + +- Execute a specific Python file: + +`bpython {{path/to/file.py}}` + +- Execute a specific Python file and start a REPL: + +`bpython --interactive {{path/to/file.py}}` + +- Use the specified [c]onfig file instead of the default config: + +`bpython --config {{path/to/file.conf}}`