When I have a (static) HoloMap object like from the docs:
import statements
import holoviews as hv
import panel as pn
import numpy as np
hv.extension('plotly')
pn.extension()
def sine_curve(phase, freq):
xvals = [0.1* i for i in range(100)]
return hv.Curve((xvals, [np.sin(phase+freq*x) for x in xvals]))
frequencies = [0.5, 0.75, 1.0, 1.25]
curve_dict = {f:sine_curve(0,f) for f in frequencies}
hmap = hv.HoloMap(curve_dict, kdims='frequency')
I can save it nicely into a static html with:
hv.save(hmap, "hv_test.html")
which works like a charm.
But I cannot save that HoloMap with panel.save(...)
, when it is embedded into a panel layout like this:
app = pn.Column("Does this work?", hmap)
app.save("pn_test.html")
The resulting slider does not trigger any plot updates.
Is that a bug or am I missing something?