mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 09:55:51 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/bpython
Normal file
26
tldr/bpython
Normal file
@@ -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: <https://manned.org/bpython>.
|
||||||
|
|
||||||
|
- 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}}`
|
||||||
Reference in New Issue
Block a user