Adding plot.toolbar.active_scroll = plot.select_one(WheelZoomTool) in def update_plot(attr, old, new) function raises following error:
ValueError: Found more than one object matching <class ‘bokeh.models.tools.WheelZoomTool’>: [WheelZoomTool(id=‘1046’, …), WheelZoomTool(id=‘1275’, …)]
sample code:
plot = figure()
plot.tools = [PanTool(), hover, WheelZoomTool()]
plot.toolbar.active_scroll = plot.select_one(WheelZoomTool)
some other codes
def update_plot(attr, old, new):
some other codes
plot.toolbar.active_scroll = plot.select_one(WheelZoomTool)