Skip to content

Commit

Permalink
Ensure change events are processed on bokeh Jupyter widget (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Oct 19, 2019
1 parent 45177aa commit b55b21c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panel/viewable.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,10 @@ def _server_change(self, doc, attr, old, new):
self._events.update({attr: new})
if not self._processing:
self._processing = True
doc.add_timeout_callback(partial(self._change_event, doc), self._debounce)
if doc.session_context:
doc.add_timeout_callback(partial(self._change_event, doc), self._debounce)
else:
self._change_event(doc)

def _process_events(self, events):
self.set_param(**self._process_property_change(events))
Expand Down

0 comments on commit b55b21c

Please sign in to comment.