Setup

This first step to the tutorial will make sure your system is set up to do all the remaining sections, with all software installed and all data downloaded as needed. The index covered background you might want before you start.

Getting set up

Please consult holoviz.org for the full instructions on installing the software used in these tutorials. Here is the condensed version of those instructions, assuming you have already downloaded and installed Anaconda or Miniconda:

conda create -n holoviz-tutorial python=3.7
conda activate holoviz-tutorial
conda install -c pyviz holoviz
holoviz examples
cd holoviz-examples
jupyter notebook

See the full instructions at holoviz.org if you don't yet have conda, or if you have an old version of conda.

Once everything is installed, run the following cell to test the key imports needed for this tutorial. If it completes without errors your environment should be ready to go:

In [1]:
import pandas as pd, datashader as ds, dask, bokeh, holoviews as hv  # noqa
from distutils.version import LooseVersion

min_versions = dict(pd='0.24.0', ds='0.7.0', dask='1.2.0', bokeh='1.2.0', hv='1.12.3')

for lib, ver in min_versions.items():
    v = globals()[lib].__version__
    if LooseVersion(v) < LooseVersion(ver):
        print("Error: expected {}={}, got {}".format(lib,ver,v))

And you should see the HoloViews, Bokeh, and Matplotlib logos after running the following cell:

In [2]:
hv.extension('bokeh', 'matplotlib')