Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
29 lines (20 loc) · 830 Bytes

File metadata and controls

29 lines (20 loc) · 830 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

Tips and tricks

There are various tricks and tips to bpython. We currently list one of them on this page. If you know any more, don't hesitate to let us know (:ref:`community`)!

bpython and multiple python versions

To use bpython with multiple version items this trick has been relayed to us by Simon Liedtke.

Do a source checkout of bpython and add the following to your .profile equivalent file.

alias bpython3.5='PYTHONPATH=~/python/bpython python3.5 -m bpython.cli'

Where the ~/python/bpython-path is the path to where your bpython source code resides.

You can of course add multiple aliases, so you can run bpython with 2.7 and the 3 series.

Note

Make sure you have the dependencies installed on all Python versions.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.