(html: str)
| 13 | |
| 14 | |
| 15 | def 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 | |
| 22 | XarrayTypes = xr.DataTree | xr.Dataset | xr.DataArray | xr.Variable |
no outgoing calls
no test coverage detected
searching dependent graphs…