Building Panels

Panel is designed to make it simple to add interactive controls to your existing plots and data displays, simple to build apps for your own use in a notebook, simple to deploy apps as standalone dashboards to share with colleagues, and seamlessly shift back and forth between each of these tasks as your needs evolve. If there is one thing you should take away from this tutorial, it's Panel!

Throughout this tutorial we will use an earthquake dataset collected by the US Geological survey, so will start by loading it:

In [1]:
import dask.dataframe as dd

df = dd.read_parquet('../data/earthquakes.parq', columns=['time', 'place', 'mag']).reset_index(drop=True).persist()

Additionally before displaying anything with Panel it is always necessary to load the Panel extension:

In [2]:
import panel as pn

pn.extension()