From fc6e48b18a5cdb449cd106b601e95edd89ea105a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Fri, 7 Jun 2024 16:57:50 +0200 Subject: [PATCH] Fix colab (#6269) --- holoviews/plotting/renderer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/holoviews/plotting/renderer.py b/holoviews/plotting/renderer.py index 7d8fcb97f0..361de8193b 100644 --- a/holoviews/plotting/renderer.py +++ b/holoviews/plotting/renderer.py @@ -389,8 +389,9 @@ def components(self, obj, fmt=None, comm=True, **kwargs): src is source or (src._plot_id is not None and src._plot_id == source._plot_id) for src, streams in registry for s in streams ) + if config.comms == 'colab': + load_notebook(config.inline) embed = (not (dynamic or streams or self.widget_mode == 'live') or config.embed) - if embed or config.comms == 'default': return self._render_panel(plot, embed, comm) return self._render_ipywidget(plot)