bpython
bpython is a lightweight, enhanced interactive Python REPL that provides in-line auto-completion, syntax highlighting, and other productivity features.
Installation and Setup
Install from PyPI:
Verify the installation:
$ bpython --version
Key Features
- In-line auto-completion with call signatures and docstrings shown as you type.
- Syntax highlighting and smart indentation inside a terminal UI.
- Rewind capability to undo the last executed code block during a session.
- Session export and paste helpers to write out or share the current buffer.
- Configurable colors, key bindings, and behavior through a simple config file.
Usage
Start an enhanced interactive session:
$ bpython
Run a script inside the enhanced shell:
$ bpython script.py
Save or share the session content using the built-in write or paste commands, then exit with Ctrl+D when done.
Related Resources
Tutorial
Discover bpython: A Python REPL With IDE-Like Features
In this tutorial, you'll learn about bpython, an alternative Python REPL that brings code suggestions and many other IDE-like features to the terminal. Once you discover how much bpython can improve your productivity, you'll never want to return to using the vanilla Python REPL again.
For additional information on related topics, take a look at the following resources:
- Using the bpython Enhanced REPL (Course)
By Leodanis Pozo Ramos • Updated Dec. 1, 2025