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 = {}