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

Function patch

hvplot/polars.py:7–20  ·  view source on GitHub ↗
(name='hvplot', extension='bokeh', logo=False)

Source from the content-addressed store, hash-verified

5
6
7def 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
23patch()

Callers 1

polars.pyFile · 0.70

Calls 1

post_patchFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…