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

Function short_data_repr_html

xarray/core/formatting_html.py:41–47  ·  view source on GitHub ↗

Format "data" for DataArray and Variable.

(array)

Source from the content-addressed store, hash-verified

39
40
41def short_data_repr_html(array) -> str:
42 """Format "data" for DataArray and Variable."""
43 internal_data = getattr(array, "variable", array)._data
44 if hasattr(internal_data, "_repr_html_"):
45 return internal_data._repr_html_()
46 text = escape(short_data_repr(array))
47 return f"<pre>{text}</pre>"
48
49
50def format_dims(dim_sizes, dims_with_index) -> str:

Callers 2

summarize_variableFunction · 0.85
array_sectionFunction · 0.85

Calls 2

short_data_reprFunction · 0.90
_repr_html_Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…