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.
conda create -n pyviz-tutorial python=3.6
conda activate pyviz-tutorial
conda install -c pyviz/label/dev pyviz
pyviz examples
cd pyviz-examples
jupyter notebook
See the full instructions at pyviz.org if you don't yet have conda, or if you have an old version of conda.
Once everything is installed, the following cell should print '1.11.0a4' or later:
import holoviews as hv
hv.__version__
And you should see the HoloViews, Bokeh, and Matplotlib logos after running the following cell:
hv.extension('bokeh', 'matplotlib')
The next cell tests the other key imports needed for this tutorial, and if it completes without errors your environment should be ready to go:
import pandas
import datashader
import dask
import geoviews
import bokeh
Lastly, let's make sure the datasets needed are available. First, check that the large taxi dataset was downloaded correctly during installation:
import os
if not os.path.isfile('../data/nyc_taxi_wide.parq'):
print('Taxi dataset not found; please run "pyviz fetch-data --path ../data".')
Finally, some examples in the tutorial rely on bokeh sample data, which you can get by running the command below:
if not os.path.isfile(os.path.join(os.path.expanduser('~'),'.bokeh','data','routes.csv')):
bokeh.sampledata.download()
If you don't see any warning or error messages above, you should be good to go! You can start with either 01 Workflow Introduction or A2 Dashboard Workflow.