Skip to content

Commit

Permalink
Pass the backend from opts
Browse files Browse the repository at this point in the history
  • Loading branch information
LecrisUT authored Jul 18, 2024
1 parent 55856e1 commit e02b94e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions holoviews/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ def defaults(cls, *options, **kwargs):
if kwargs and len(kwargs) != 1 and next(iter(kwargs.keys())) != 'backend':
raise Exception('opts.defaults only accepts "backend" keyword argument')

expanded = cls._expand_options(merge_options_to_dict(options))
backend=kwargs.get('backend')
expanded = cls._expand_options(merge_options_to_dict(options), backend=backend)
expanded = expanded or {}
cls._linemagic(expanded, backend=kwargs.get('backend'))
cls._linemagic(expanded, backend=backend)

@classmethod
def _expand_by_backend(cls, options, backend):
Expand Down

0 comments on commit e02b94e

Please sign in to comment.