datatree icon indicating copy to clipboard operation
datatree copied to clipboard

collapsible items in `groups` DataTree

Open agrouaze opened this issue 2 years ago • 3 comments

Having collapsible items (like xarray.Datasets) in groups repr_html_ would help to have user friendly overview of python objects. I am wondering whether this feature is already available or not. image

agrouaze avatar Aug 22 '22 12:08 agrouaze

Hi @agrouaze, the HTML repr (which you screenshotted) already has collapsible sections for each group in the tree. (And each group corresponds to a single Dataset object.) Is this what you were asking for?

TomNicholas avatar Aug 22 '22 15:08 TomNicholas

image

It'd be nice to make each Node under "groups" collapsible (like next to TAO). image

Also why is it called "Groups" instead of "Nodes"?

dcherian avatar Aug 22 '22 17:08 dcherian

Well @dcherian summed it up perfectly, it would be nice to have each single dataset collapsible.

agrouaze avatar Aug 23 '22 07:08 agrouaze