This exercise is entirely freeform. Get into groups of 3-4 people and start building a dashboard, with everything you have learned in this tutorial. By the end of the exercise you should have a dashboard that:
.apply
methodpanel serve Advanced_Dashboarding.ipynb
in the exercise directoryimport colorcet as cc # noqa
import holoviews as hv # noqa
import numpy as np # noqa
import dask.dataframe as dd
import panel as pn
import xarray as xr
import hvplot.pandas # noqa: API import
import hvplot.xarray # noqa: API import
pn.extension()
As a starting point we will load the data; everything else is up to you:
df = dd.read_parquet('../../data/earthquakes.parq').repartition(npartitions=4).persist()
ds = xr.open_dataarray('../../data/gpw_v4_population_density_rev11_2010_2pt5_min.nc')
cleaned_ds = ds.where(ds.values != ds.nodatavals).sel(band=1)
cleaned_ds.name = 'population'
You don't really know what to build? Here are some ideas:
RangeSlider
or time using a DateRangeSlider
) and then datashades itBoundsXY
streams (see the Glaciers notebook for reference)Selection1D
stream and compute statistics on them.