Skip to Content
Secret Recipes of the Python Ninja
book

Secret Recipes of the Python Ninja

by Cody Jackson
May 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
9h 37m
English
Packt Publishing
Content preview from Secret Recipes of the Python Ninja

How to do it...

  1. Create a virtual environment for your project, such as:
      $ virtualenv bpython-dev # determines Python version used      $ source bpython-dev/bin/activate       # necessary every time you work on bpython
  1. Clone the bpython GitHub repository to your development system:
      $ git clone git@github.com:<github_username>/bpython/bpython.git
  1. Install bypython and dependencies:
      $ cd bpython      $ pip install -e . # installs bpython and necessary dependencies      $ pip install watchdog urwid # install optional dependencies      $ pip install sphinx mock nose # install development dependencies      $ bpython # launch bpython
  1. As an alternative to the pip installations, your *NIX distribution most likely has the necessary files. Running apt search python-<package> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Expanding World of Python

The Expanding World of Python

Dane Hillard

Publisher Resources

ISBN: 9781788294874Supplemental Content