12 Parameters and Widgets

In previous sections we have mostly been learning about using HoloViews to build visualizations. There is only so much information that can be packed on to the screen at once, and in practice it's often necessary to supply interactive widgets so the user can further select what is shown. HoloViews can provide widgets automatically for dimensions that have been declared on the data, but often you will want to express other types of user-settable parameters to control your plots. Here we will discover how to leverage the Param library to declare your own custom parameters and the associated widget libraries ParamNB and ParamBokeh to link widgets to your visualization.

In [1]:
import param
import paramnb
import parambokeh

import numpy as np
import holoviews as hv
from bokeh.document import Document

hv.extension('bokeh')