2024-12-27 18:18:24 +01:00
|
|
|
# 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:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bpython {{[-i|--interactive]}} {{path/to/file.py}}`
|
2024-12-27 18:18:24 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Use the specified config file instead of the default config:
|
2024-12-27 18:18:24 +01:00
|
|
|
|
|
|
|
`bpython --config {{path/to/file.conf}}`
|