diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index 3bd5af7080..b134f666bb 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -215,7 +215,7 @@ def refresh(self, **kwargs): # If we do not have the Document lock, schedule refresh as callback self._triggering += [s for p in self.traverse(lambda x: x, [Plot]) for s in getattr(p, 'streams', []) if s._triggering] - if self.document.session_context: + if self.document and self.document.session_context: self.document.add_next_tick_callback(self.refresh) return