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

Function patch

hvplot/intake.py:6–22  ·  view source on GitHub ↗
(name='hvplot', extension='bokeh', logo=False)

Source from the content-addressed store, hash-verified

4
5
6def patch(name='hvplot', extension='bokeh', logo=False):
7 try:
8 import intake
9 except ImportError:
10 raise ImportError(
11 'Could not patch plotting API onto intake. intake could not be imported.'
12 )
13
14 if 'hvplot.intake' not in _module_extensions:
15 _patch_plot = lambda self: hvPlot(self) # noqa: E731
16 _patch_plot.__doc__ = hvPlot.__call__.__doc__
17 patch_property = property(_patch_plot)
18 setattr(intake.source.base.DataSource, name, patch_property)
19
20 _module_extensions.add('hvplot.intake')
21
22 post_patch(extension, logo)
23
24
25try:

Callers 1

intake.pyFile · 0.70

Calls 2

hvPlotClass · 0.85
post_patchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…