From 5c2908e043da112125fc4bd8f76c4ddd24ff6201 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 28 Dec 2024 00:17:06 +0000 Subject: [PATCH] Update cheatsheets --- tldr/bpython | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tldr/bpython diff --git a/tldr/bpython b/tldr/bpython new file mode 100644 index 00000000..71bcc306 --- /dev/null +++ b/tldr/bpython @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# 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}}`