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 install -c pyviz pyviz
! pyviz --install-examples pyviz-tutorial
! pyviz --download-sample-data pyviz-tutorial
! cd pyviz-tutorial
! jupyter notebook
See the full instructions at pyviz.org if you are on Windows or don't yet have conda.
Once everything is installed, the following cell should print '1.10.7':
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 --download-sample-data ../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.