(name='hvplot', extension='bokeh', logo=False)
| 4 | |
| 5 | |
| 6 | def 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 | |
| 25 | try: |
no test coverage detected
searching dependent graphs…