LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bpython

Enhanced interactive Python interpreter

TLDR

Start interactive Python session
$ bpython
copy
Execute a script then enter interactive mode
$ bpython -i [script.py]
copy
Execute a command
$ bpython -c "[print('hello')]"
copy
Start without banner
$ bpython -q
copy

SYNOPSIS

bpython [options] [file]

DESCRIPTION

bpython is an enhanced Python REPL (Read-Eval-Print-Loop) with features like syntax highlighting, auto-completion, automatic indentation, and inline documentation. It provides a user-friendly interface for interactive Python development.The tool improves the standard Python interactive interpreter experience with modern IDE-like features.

PARAMETERS

-i

Run file then interactive mode
-q
Quiet mode (no banner)
-c command
Execute command
--config file
Configuration file

CONFIGURATION

~/.config/bpython/config

Main configuration file for syntax highlighting, colors, key bindings, and behavior settings.

FEATURES

- Syntax highlighting- Auto-completion as you type- Expected parameter list- Inline documentation (F1)- Rewind/replay execution (Ctrl+R)- Save session to file (F2)- Undo (Ctrl+C)- Pastebin integration (F8)- vi/emacs key bindings

KEYBINDINGS

- F1 - Show documentation- F2 - Save to file- F8 - Send to pastebin- Ctrl+R - Rewind/replay- Ctrl+C - Undo last input- Tab - Auto-completion- Ctrl+D - Exit

INSTALL

sudo pacman -S bpython
copy
brew install bpython
copy

CAVEATS

Not a drop-in replacement for complex scripts. Some extensions may not work. Slower startup than standard Python. Replay feature has limitations. Not suitable for production use.

HISTORY

bpython was created by Bob Farrell and others around 2008 to provide a more user-friendly Python REPL experience.

SEE ALSO

python(1), ipython(1), ptpython(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid