Skip to content

Commit

Permalink
Ensure setting opts on DynamicMap does not generate deprecation warni…
Browse files Browse the repository at this point in the history
…ngs (#5345)
  • Loading branch information
philippjfr authored Jun 27, 2022
1 parent 39bfbc0 commit 5392a11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/core/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,11 @@ def event(self, **kwargs):

def _style(self, retval):
"Applies custom option tree to values return by the callback."
from ..util import opts
if self.id not in Store.custom_options():
return retval
spec = StoreOptions.tree_to_dict(Store.custom_options()[self.id])
return retval.opts(spec)
return opts.apply_groups(retval, options=spec)


def _execute_callback(self, *args):
Expand Down

0 comments on commit 5392a11

Please sign in to comment.