Open
Description
When wrapping interconnected ipywidgets
(e.g.: an IPyWidget.IntSlider
with a ipyleaflet.Map.zoom
) into an ipywidgets_bokeh
, we lost the interaction between widgets.
Attempt to reproduce the issue:
from ipywidgets_bokeh import IPyWidget
import ipywidgets as widgets
from bokeh.layouts import row
from bokeh.plotting import curdoc
from ipyleaflet import Map, basemaps
from ipywidgets import jslink
m = Map(center=(46.01, 6.16), zoom=12, basemap=basemaps.Stamen.Terrain)
zoom_slider = widgets.IntSlider(description='Zoom level:', min=0, max=15, value=7)
jslink((zoom_slider, 'value'), (m, 'zoom'))
slider_wrapper = IPyWidget(widget=zoom_slider, width=600, height=400)
map_wrapper = IPyWidget(widget=m, width=600, height=400)
doc = curdoc()
doc.add_root(row(slider_wrapper, map_wrapper))
In the code above, the zoom slider should be connected with the zoom level into the ipywidgets
map canvas.