Using the bpython Enhanced REPL (Overview)
The standard Python interpreter lets you run scripts from files or interactively execute code on the fly in a so-called read-evaluate-print loop (REPL). While this is a powerful tool for exploring the language and discovering its libraries through instant feedback on your code inputs, the default REPL shipped with Python has several limitations. Luckily, alternatives like bpython offer a much more programmer-friendly and convenient experience.
You can use bpython to experiment with your code or quickly test an idea without switching contexts between different programs, just like in an integrated development environment (IDE). In addition, bpython may be a valuable teaching tool in either a virtual or physical classroom.
In this course, you’ll learn how to:
- Install and use bpython as your alternative Python REPL
- Boost your productivity thanks to bpython’s unique features
- Tweak bpython’s configuration and its color theme
- Use common keyboard shortcuts to code more quickly
- Contribute to bpython’s open-source project on GitHub
Before starting this course, make sure you’re already familiar with Python basics and know how to start the standard Python REPL in the command line. In addition, you should be able to install packages with pip
, ideally into a virtual environment.
00:00 Using the bpython Enhanced REPL.
00:05 The standard Python interpreter lets you run scripts from files or interactively execute code on the fly in a so-called Read-Evaluate-Print Loop, known as a REPL.
00:15 While this is a powerful tool for exploring the language and discovering its libraries through instant feedback on your code inputs, the default REPL shipped with Python has several limitations.
00:26
Fortunately, alternatives such as bpython offer a more programmer-friendly and convenient experience. You can use bpython to experiment with your code or quickly test an idea without switching context between different programs, just like an Integrated Development Environment does. In addition, bpython may be a valuable teaching tool in either a virtual or physical classroom. In this course, you’ll learn how to install and use bpython as your alternative Python REPL, boost your productivity thanks to bpython’s unique features, tweak bpython’s configuration and its color scheme, use common keyboard shortcuts to code more quickly, and contribute to bpython’s open source project on GitHub. Before starting this course, make sure you are already familiar with Python basics and know how to start the standard Python REPL in the command line. In addition, you should be able to install packages with pip
, ideally into a virtual environment. So now you know what’s going to be covered, let’s get started.
Become a Member to join the conversation.