Skip to content

Commit

Permalink
Fix colab (#6269)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jun 7, 2024
1 parent d6b2d95 commit fc6e48b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc6e48b

Please sign in to comment.