-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic * doesn't work in open stream mode #965
Comments
jlstevens
changed the title
Dynamic
Dynamic Nov 1, 2016
__mul__
doesn't work in open dimensioned mode__mul__
doesn't work in open stream mode
jlstevens
changed the title
Dynamic
Dynamic * doesn't work in open stream mode
Nov 1, 2016
__mul__
doesn't work in open stream mode
I encountered another confusing issue. In the example above, if you try to use the opts magic as follows: %%opts Image {+axiswise} I get a traceback ending in: /Users/jstevens/Desktop/development/holoviews/holoviews/plotting/plot.pyc in _get_frame(self, key)
614 elif self.dynamic:
615 with dimensionless_cache(self.hmap, not self._force or not self.drawn):
--> 616 key, frame = util.get_dynamic_item(self.hmap, self.dimensions, key)
617 traverse_setter(self, '_force', False)
618 if not isinstance(key, tuple): key = (key,)
/Users/jstevens/Desktop/development/holoviews/holoviews/core/util.pyc in get_dynamic_item(map_obj, dimensions, key)
972 el = map_obj.map(lambda x: x[key], ['DynamicMap'])
973 elif key >= map_obj.counter:
--> 974 el = next(map_obj)
975 key = list(map_obj.keys())[-1]
976 else:
/Users/jstevens/Desktop/development/holoviews/holoviews/core/spaces.py in next(self)
778 """
779 if self.mode == 'bounded':
--> 780 raise Exception("The next() method should only be called in "
781 "one of the open modes.")
782
Exception: The next() method should only be called in one of the open modes. This time this only happens when the range is specified on the time dimension! |
When I use the cell magic ( |
There is no more open stream mode, closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following doesn't work as expected:
I get:
This suggests that
element
is an Overlay soelement.extents
is creating a new overlay. But if I give the time dimension a range:It now works as expected. Setting the range shouldn't be necessary to make dynamic overlays work in open mode...
The text was updated successfully, but these errors were encountered: