From 2f1672c8c675ce968fa5b90cdf4232156d9b8034 Mon Sep 17 00:00:00 2001 From: Jerry Vinokurov Date: Mon, 22 Jul 2024 01:05:53 -0400 Subject: [PATCH] wrap popup in set_curdoc --- holoviews/plotting/bokeh/callbacks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py index a80bf1e4e2..0b4b95a3de 100644 --- a/holoviews/plotting/bokeh/callbacks.py +++ b/holoviews/plotting/bokeh/callbacks.py @@ -688,7 +688,8 @@ def _process_selection_event(self): break if callable(popup): - popup = popup(**stream.contents) + with set_curdoc(self.plot.document): + popup = popup(**stream.contents) # If no popup is defined, hide the panel if popup is None: