mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
615 B
Plaintext
27 lines
615 B
Plaintext
---
|
|
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 {{[-i|--interactive]}} {{path/to/file.py}}`
|
|
|
|
- Use the specified configuration file instead of the default configuration:
|
|
|
|
`bpython --config {{path/to/file.conf}}`
|