For example, in the Panel documentation you can find the following using Bokeh (docs):
from bokeh.plotting import figure p = figure(width=300, height=300) xs = np.linspace(0, 10) r = p.line(xs, np.sin(xs)) width_slider = pn.widgets.FloatSlider(name='Line Width', start=0.1, end=10) width_slider.jslink(r.glyph, value='line_width') pn.Column(width_slider, p)
Similarly to ipywidgets there is the possibility to link to js objects by their values or other properties. Since the plotly
FigureWidget is in essense an ipywidget there should be a simple way to do it I guess, but I could’nt find any documentation on it.
Hope some people can help here.