Skip to content

Commit

Permalink
Added DynamicMap.opts method to opts to returned object
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 20, 2017
1 parent b60d677 commit 9259cb2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions holoviews/core/spaces.py
Expand Up @@ -847,6 +847,15 @@ def _execute_callback(self, *args):
return self._style(retval)


def opts(self, options=None, **kwargs):
"""
Apply the supplied options to a clone of the DynamicMap which is
then returned. Note that if no options are supplied at all,
all ids are reset.
"""
return self.map(lambda x: x(options, **kwargs), [lambda x: x is not self])


def clone(self, data=None, shared_data=True, new_type=None, link_inputs=True,
*args, **overrides):
"""
Expand Down

0 comments on commit 9259cb2

Please sign in to comment.