Skip to content

Commit

Permalink
Fixes for bokeh widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 18, 2017
1 parent d240945 commit 2267ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions holoviews/plotting/bokeh/widgets.py
Expand Up @@ -68,7 +68,7 @@ def __init__(self, plot, renderer=None, **params):
self.renderer = renderer
# Create mock NdMapping to hold the common dimensions and keys
self.mock_obj = NdMapping([(k, None) for k in self.keys],
kdims=self.dimensions)
kdims=list(self.dimensions))
self.widgets, self.lookups = self.get_widgets()
self.reverse_lookups = {d: {v: k for k, v in item.items()}
for d, item in self.lookups.items()}
Expand Down Expand Up @@ -195,11 +195,10 @@ def update(self):
Handle update events on bokeh server.
"""
if not self._queue:
self._active = False
return
self._queue = []

dim, widget_type, attr, old, new = self._queue[-1]
self._queue = []
dim_label = dim.pprint_label

label, widget = self.widgets[dim_label]
Expand Down Expand Up @@ -232,6 +231,7 @@ def update(self):
key = wrap_tuple_streams(tuple(key), self.plot.dimensions,
self.plot.streams)
self.plot.update(key)
self._active = False



Expand Down

0 comments on commit 2267ee6

Please sign in to comment.