First get local copies of the tutorial notebooks:
$ git clone https://github.com/bokeh/bokeh-notebooks.git
Or download from: https://github.com/bokeh/bokeh-notebooks/archive/master.zip
This tutorial has been tested on:
- bokeh 3.0.0
- pandas 1.4.4
- notebook 6.5.1
- pillow 9.2.0
- selenium 3.141.0
Other combinations may work also.
The quickest, easiest way to install is to use Anaconda (or Miniconda):
Install anaconda
Anaconda should come with all the dependencies included, but you may need to update your versions.
Install miniconda.
Use the command line to create an environment and install the packages:
$ conda env create
$ source activate bokeh-notebooks
NOTE: Run this in the tutorial
directory where environment.yml
file is.
Once you've got a base install, you can install the remaining dependencies with:
conda install phantomjs pillow selenium
Bokeh has a sample data download that gives us some data to build demo visualizations. To get it run the following command at your command line:
$ bokeh sampledata
or run the following from within a Python interpreter:
import bokeh.sampledata
bokeh.sampledata.download()
Some optional sections require the additional packages Flask, Datashader, and Holoviews. These can be installed with:
$ conda install -c pyviz datashader holoviews flask
From this folder run jupyter notebook, and open the [00 - Introduction and Setup.ipynb](00 - Introduction and Setup.ipynb) notebook.
$ jupyter notebook