MCPcopy Index your code
hub / github.com/pydata/xarray / drop_fallback_text_repr

Function drop_fallback_text_repr

xarray/tests/test_formatting_html.py:15–19  ·  view source on GitHub ↗
(html: str)

Source from the content-addressed store, hash-verified

13
14
15def drop_fallback_text_repr(html: str) -> str:
16 pattern = (
17 re.escape("<pre class='xr-text-repr-fallback'>") + "[^<]*" + re.escape("</pre>")
18 )
19 return re.sub(pattern, "", html)
20
21
22XarrayTypes = xr.DataTree | xr.Dataset | xr.DataArray | xr.Variable

Callers 1

xarray_html_only_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…