Glaciers

View a running version of this notebook. | Download this project.


Glaciers explorer using Datashader

This notebook provides an annotated HoloViews+Panel implementation of a dashboard originally developed in Plotly+Dash for viewing data about the Earth's glaciers from the Open Global Glacier Model. To run it, first:

conda install -c pyviz pandas=0.24 param=1.10.0 panel=0.10.1 holoviews=1.13.5 datashader=0.11.1

Next, save the data file as data/oggm_glacier_explorer.csv (and gzip it if desired).

The dashboard can then be used here as a cell in the Jupyter notebook, or you can run it as a separate server using:

panel serve glaciers.ipynb --show

This notebook is essentially the same as Glaciers.ipynb but uses unaggregated data that is practical only with Datashader.

In [1]:
import numpy as np
import pandas as pd
import holoviews as hv
import datashader as ds
import panel as pn

from colorcet import bmy
from holoviews.operation.datashader import rasterize, datashade

hv.extension('bokeh')