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

Function datatree_repr

xarray/core/formatting_html.py:652–661  ·  view source on GitHub ↗
(node: DataTree)

Source from the content-addressed store, hash-verified

650
651
652def datatree_repr(node: DataTree) -> str:
653 displays = _build_datatree_displays(node)
654 header_components = [
655 f"<div class='xr-obj-type'>xarray.{type(node).__name__}</div>",
656 ]
657 if node.name is not None:
658 name = escape(repr(node.name))
659 header_components.append(f"<div class='xr-obj-name'>{name}</div>")
660 sections = datatree_sections(node, displays)
661 return _obj_repr(node, header_components, sections)

Callers

nothing calls this directly

Calls 4

_build_datatree_displaysFunction · 0.85
typeFunction · 0.85
datatree_sectionsFunction · 0.85
_obj_reprFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…