Skip to content

Commit

Permalink
Add check if document has already been set in server mode (#4355)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Apr 1, 2020
1 parent 8787a59 commit 7215130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
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 7215130

Please sign in to comment.