Skip to content

Commit

Permalink
Allowed using cache when drawing initial frame
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 12, 2016
1 parent 1b37619 commit ea79755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def _get_frame(self, key):
self.current_key = key
return self.current_frame
elif self.dynamic:
with enable_streams_cache(self.hmap, not self.force):
with enable_streams_cache(self.hmap, not self.force or not self.drawn):
key, frame = util.get_dynamic_item(self.hmap, self.dimensions, key)
self.force = False
if not isinstance(key, tuple): key = (key,)
Expand Down Expand Up @@ -959,7 +959,7 @@ def _get_frame(self, key):
if d in item.dimensions('key')], key)
self.current_key = tuple(k[1] for k in dim_keys)
elif item.traverse(lambda x: x, [DynamicMap]):
with enable_streams_cache(item, not self.force):
with enable_streams_cache(item, not self.force or not self.drawn):
key, frame = util.get_dynamic_item(item, self.dimensions, key)
layout_frame[path] = frame
continue
Expand Down

0 comments on commit ea79755

Please sign in to comment.