Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_converter(self, x=None, y=None, kind=None, **kwds):
params = dict(self._metadata, **kwds)
x = x or params.pop('x', None)
y = y or params.pop('y', None)
kind = kind or params.pop('kind', None)
return HoloViewsConverter(
self._data, x, y, kind=kind, **params
)
def _get_doc(cls, kind, completions=False, docstring=True, generic=True, style=True):
converter = HoloViewsConverter
method = getattr(cls, kind)
kind_opts = converter._kind_options.get(kind, [])
eltype = converter._kind_mapping[kind]
formatter = ''
if completions:
formatter = "hvplot.{kind}({completions})"
if docstring:
if formatter:
formatter += '\n'
formatter += "{docstring}"
if generic:
if formatter:
formatter += '\n'
formatter += "{options}"