Skip to content

Commit

Permalink
Improved bokeh server event queue
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 26, 2017
1 parent 2c37278 commit 8ad43db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/bokeh/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def trigger(self):
"""
if not self._event_queue:
return
self._event_queue = []

values = {}
for attr, path in self.attributes.items():
Expand All @@ -385,7 +386,7 @@ def trigger(self):
attr_val = getattr(attr_val, p, None)
values[attr] = {'id': obj.ref['id'], 'value': attr_val}
self.on_msg(values)
self._event_queue = []
self.plot.document.add_timeout_callback(self.trigger, 50)


def set_onchange(self, handle):
Expand Down

0 comments on commit 8ad43db

Please sign in to comment.