Skip to content

Commit

Permalink
Merge 1adc822 into 79851d7
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 9, 2016
2 parents 79851d7 + 1adc822 commit 2298e8a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,28 +821,27 @@ def update_frame(self, key, ranges=None, element=None, empty=False):
self.current_frame = element
self.current_key = key

items = element.items() if element else []
if isinstance(self.hmap, DynamicMap):
range_obj = element
items = element.items()
else:
range_obj = self.hmap
items = element.items()

all_empty = empty
ranges = self.compute_ranges(range_obj, key, ranges)
for k, subplot in self.subplots.items():
empty, el = False, None
if isinstance(self.hmap, DynamicMap):
if isinstance(self.hmap, DynamicMap) and element:
idx = dynamic_update(self, subplot, k, element, items)
empty = idx is None
if not empty:
_, el = items.pop(idx)
subplot.update_frame(key, ranges, element=el, empty=(empty or all_empty))

if isinstance(self.hmap, DynamicMap) and items:
raise Exception("Some Elements returned by the dynamic callback "
"were not initialized correctly and could not be "
"rendered.")
if isinstance(self.hmap, DynamicMap) and items and element:
self.warning("Some Elements returned by the dynamic callback "
"were not initialized correctly and could not be "
"rendered.")

if not self.overlaid and not self.tabs and not self.batched:
self._update_ranges(element, ranges)
Expand Down

0 comments on commit 2298e8a

Please sign in to comment.