Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def post_patch(extension='bokeh', logo=False):
if extension and not getattr(_hv.extension, '_loaded', False):
_hv.extension(extension, logo=logo)
def _patch_doc(cls, kind):
method = getattr(cls, kind)
docstring = _get_doc(cls, kind, get_ipy())
if sys.version_info.major == 2:
method.__func__.__doc__ = docstring
else:
method.__doc__ = docstring
# Patch docstrings
for cls in [hvPlot, hvPlotTabular]:
for _kind in HoloViewsConverter._kind_mapping:
if hasattr(cls, _kind):
_patch_doc(cls, _kind)
"""
Provide a docstring with all valid options which apply to the plot
type.
Parameters
----------
kind: str
The kind of plot to provide help for
docstring: boolean (default=True)
Whether to display the docstring
generic: boolean (default=True)
Whether to provide list of generic options
style: boolean (default=True)
Whether to provide list of style options
"""
print(_get_doc(cls=hvPlot, kind=kind, docstring=docstring, generic=generic, style=style))