From e02b94e3184108b093c6eaccba22bc09292c325e Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Thu, 18 Jul 2024 11:37:06 +0200 Subject: [PATCH] Pass the `backend` from `opts` --- holoviews/util/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/holoviews/util/__init__.py b/holoviews/util/__init__.py index 30cadf8b5f..6d04fc638f 100644 --- a/holoviews/util/__init__.py +++ b/holoviews/util/__init__.py @@ -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):