Skip to content

Commit

Permalink
Add check if document has already been set in server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 1, 2020
1 parent 8787a59 commit 19cac7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/plot.py
Expand Up @@ -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

Expand Down

0 comments on commit 19cac7f

Please sign in to comment.