You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to describe how the HoloViz ecosystem can be used with Quarto. Right now how to get interactivity without a python server.
Does not work
# Does not Work```{python}import numpy as npimport holoviews as hvimport panel as pnhv.extension("bokeh")# 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]phases = [0, np.pi/2, np.pi, 3*np.pi/2]curve_dict_2D = {(p,f):sine_curve(p,f) for p in phases for f in frequencies}pn.Column(hv.HoloMap(curve_dict_2D, kdims=['phase', 'frequency']))```
holomap-not-working.mp4
quarto preview script.qmd --port 5008
Works
If I don't put the HoloMap in a Panel Column it works.
# Works```{python}import numpy as npimport holoviews as hvimport panel as pnhv.extension("bokeh")# 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]phases = [0, np.pi/2, np.pi, 3*np.pi/2]curve_dict_2D = {(p,f):sine_curve(p,f) for p in phases for f in frequencies}hv.HoloMap(curve_dict_2D, kdims=['phase', 'frequency'])```
I'm trying to describe how the HoloViz ecosystem can be used with Quarto. Right now how to get interactivity without a python server.
Does not work
holomap-not-working.mp4
Works
If I don't put the HoloMap in a Panel
Column
it works.holomap-works.mp4
Versions
panel==1.3.6 bokeh==3.3.2 holoviews==1.18.1
The text was updated successfully, but these errors were encountered: