Download this project.

This notebook contains the code for an interactive dashboard for making Datashader plots from any dataset that has latitude and longitude (geographic) values. Apart from Datashader itself, the code relies on other Python packages from the HoloViz project that are each designed to make it simple to:

  • lay out plots and widgets into an app or dashboard, in a notebook or for serving separately (Panel)
  • build interactive web-based plots without writing JavaScript (Bokeh)
  • build interactive Bokeh-based plots backed by Datashader, from concise declarations (HoloViews and hvPlot)
  • express dependencies between parameters and code to build reactive interfaces declaratively (Param)
  • describe the information needed to load and plot a dataset, in a text file (Intake)
In [1]:
import os, colorcet, param as pm, holoviews as hv, panel as pn, datashader as ds
import intake
from holoviews.element import tiles as hvts
from holoviews.operation.datashader import rasterize, shade, spread
from collections import OrderedDict as odict

hv.extension('bokeh', logo=False)