MCPcopy Create free account
hub / github.com/holoviz/hvplot / process_dynamic_args

Function process_dynamic_args

hvplot/util.py:812–829  ·  view source on GitHub ↗
(x, y, kind, **kwds)

Source from the content-addressed store, hash-verified

810
811
812def process_dynamic_args(x, y, kind, **kwds):
813 dynamic = {}
814 arg_deps = []
815 arg_names = []
816
817 for k, v in list(kwds.items()) + [('x', x), ('y', y), ('kind', kind)]:
818 if isinstance(v, param.Parameter):
819 dynamic[k] = v
820 elif panel_available and isinstance(v, pn.widgets.Widget):
821 dynamic[k] = v
822
823 for k, v in kwds.items():
824 if k not in dynamic and isinstance(v, FunctionType) and hasattr(v, '_dinfo'):
825 deps = v._dinfo['dependencies']
826 arg_deps += list(deps)
827 arg_names += list(k) * len(deps)
828
829 return dynamic, arg_deps, arg_names
830
831
832def filter_opts(eltype, options, backend='bokeh'):

Callers 4

test_dynamic_kwdsMethod · 0.90
test_fn_kwdsMethod · 0.90
__call__Method · 0.85

Calls

no outgoing calls

Tested by 3

test_dynamic_kwdsMethod · 0.72
test_fn_kwdsMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…