Installing the Bokeh library
Bokeh has a few dependencies. In order to use Bokeh, ensure that the following packages are already installed:
- NumPy
- Jinja2
- Six
- Requests
- Tornado >= 4.0
- PyYaml
- DateUtil
If you're using Python 2.7, ensure that you have all the afore mentioned packages along with:
- Futures
Installing Bokeh using a Python distribution
If you have all of your Python packages installed and managed using a distribution such as Anaconda, you can install Bokeh using your Bash Terminal or a Windows Prompt using the following code:
conda install bokeh
You can also install Bokeh using PyPi for Python 2 via the following code:
pip install bokeh
You can install Bokeh using PyPi for Python 3 via the following code:
pip3 install bokeh
For the purposes of this book, all plots will be rendered using Bokeh Version 0.12.15. If you already have Bokeh installed and require an update, simply enter the following code in your terminal or shell:
sudo pip3 install bokeh --upgrade