Skip to content
Permalink
Browse files

Resolve dependent functions in Dynamic operations (#3975)

  • Loading branch information
philippjfr committed Sep 20, 2019
1 parent d2f52fd commit d36f53c40181df8f3636273124aba526a544397b
Showing with 5 additions and 0 deletions.
  1. +5 −0 holoviews/util/__init__.py
@@ -921,6 +921,11 @@ def _eval_kwargs(self):
for k, v in self.p.kwargs.items():
if util.is_param_method(v):
v = v()
elif isinstance(v, FunctionType) and hasattr(v, '_dinfo'):
deps = v._dinfo
args = (getattr(p.owner, p.name) for p in deps.get('dependencies', []))
kwargs = {k: getattr(p.owner, p.name) for k, p in deps.get('kw', {}).items()}
v = v(*args, **kwargs)
evaled_kwargs[k] = v
return evaled_kwargs

0 comments on commit d36f53c

Please sign in to comment.
You can’t perform that action at this time.