(name='hvplot', extension='bokeh', logo=False)
| 5 | |
| 6 | |
| 7 | def patch(name='hvplot', extension='bokeh', logo=False): |
| 8 | try: |
| 9 | import polars as pl |
| 10 | except ImportError: |
| 11 | raise ImportError( |
| 12 | 'Could not patch plotting API onto Polars. Polars could not be imported.' |
| 13 | ) |
| 14 | if 'hvplot.polars' not in _module_extensions: |
| 15 | pl.api.register_dataframe_namespace(name)(hvPlotTabularPolars) |
| 16 | pl.api.register_series_namespace(name)(hvPlotTabularPolars) |
| 17 | pl.api.register_lazyframe_namespace(name)(hvPlotTabularPolars) |
| 18 | _module_extensions.add('hvplot.polars') |
| 19 | |
| 20 | post_patch(extension, logo) |
| 21 | |
| 22 | |
| 23 | patch() |
no test coverage detected
searching dependent graphs…