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

Method __call__

hvplot/interactive.py:882–895  ·  view source on GitHub ↗
(self, *args, _kind=None, **kwargs)

Source from the content-addressed store, hash-verified

880 self._interactive = _interactive
881
882 def __call__(self, *args, _kind=None, **kwargs):
883 # The underscore in _kind is to not overwrite it
884 # if 'kind' is in kwargs and the function
885 # is used with partial.
886 if _kind and 'kind' in kwargs:
887 raise TypeError(f"{_kind}() got an unexpected keyword argument 'kind'")
888 if _kind:
889 kwargs['kind'] = _kind
890
891 new = self._interactive._resolve_accessor()
892 transform = new._transform
893 transform = type(transform)(transform, 'hvplot', accessor=True)
894 dmap = 'kind' not in kwargs or isinstance(kwargs['kind'], str)
895 return new._clone(transform(*args, **kwargs), dmap=dmap)
896
897 def __getattr__(self, attr):
898 if attr in self._kinds:

Callers 3

computeMethod · 0.45
selMethod · 0.45
iselMethod · 0.45

Calls 2

_resolve_accessorMethod · 0.80
_cloneMethod · 0.80

Tested by

no test coverage detected