From 77c69e6828939712493b06b10deb566872a5524d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Fri, 10 Feb 2023 14:13:16 +0100 Subject: [PATCH] Add if statement to linked_axes for Bokeh 3 --- holoviews/plotting/bokeh/callbacks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py index 181dfde565..38608ef41e 100644 --- a/holoviews/plotting/bokeh/callbacks.py +++ b/holoviews/plotting/bokeh/callbacks.py @@ -25,7 +25,7 @@ BoxEdit, PointDraw, PolyDraw, PolyEdit, CDSStream, FreehandDraw, CurveEdit, SelectionXY, Lasso, SelectMode ) -from .util import convert_timestamp +from .util import bokeh3, convert_timestamp class Callback: @@ -606,7 +606,8 @@ class RangeXYCallback(Callback): def set_callback(self, handle): super().set_callback(handle) - handle.js_on_event('rangesupdate', CustomJS(code=self._js_on_event)) + if not bokeh3: + handle.js_on_event('rangesupdate', CustomJS(code=self._js_on_event)) def _process_msg(self, msg): data = {}