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

Method __dir__

hvplot/interactive.py:437–447  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

435 return self.layout()._repr_mimebundle_()
436
437 def __dir__(self):
438 current = self._current
439 if self._method:
440 current = getattr(current, self._method)
441 extras = {attr for attr in dir(current) if not attr.startswith('_')}
442 if is_tabular(current) and hasattr(current, 'columns'):
443 extras |= set(current.columns)
444 try:
445 return sorted(set(super().__dir__()) | extras)
446 except Exception:
447 return sorted(set(dir(type(self))) | set(self.__dict__) | extras)
448
449 def _resolve_accessor(self):
450 if not self._method:

Callers

nothing calls this directly

Calls 2

is_tabularFunction · 0.85
__dir__Method · 0.45

Tested by

no test coverage detected