html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/pull/4230#issuecomment-814813584,https://api.github.com/repos/pydata/xarray/issues/4230,814813584,MDEyOklzc3VlQ29tbWVudDgxNDgxMzU4NA==,85085,2021-04-07T10:51:31Z,2021-04-07T10:51:31Z,CONTRIBUTOR,"Thanks for the suggestions @dcherian! I've implemented `""default""` to preserve existing behaviour (i.e. only collapse if greater than preconfigured size limits). See #5126 I haven't implemented the nested options for `display_expand` - is it worth adding the extra complexity here?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,657792526 https://github.com/pydata/xarray/pull/4230#issuecomment-814059710,https://api.github.com/repos/pydata/xarray/issues/4230,814059710,MDEyOklzc3VlQ29tbWVudDgxNDA1OTcxMA==,85085,2021-04-06T11:54:06Z,2021-04-06T11:54:06Z,CONTRIBUTOR,"I would find it useful to have a generalized version of this for datasets, so it's possible to control independently whether the coordinates, data variables, and attributes sections are expanded by default. I'd be happy to pick this up if no one else is working on it. I have created a [branch](https://github.com/tomwhite/xarray/commit/199156aa9e850ec2b756292d93dafa7c986e5780) to try it out, which adds the options `display_expand_attrs`, `display_expand_coords`, `display_expand_data`, and `display_expand_data_vars` for controlling both HTML and text representations. All default to `True`. One thing I'm not sure about is maintaining the existing behaviour, which is that for the HTML dataset repr all three sections are expanded by default, up to a certain size limit, depending on the section (25 coordinates, 15 data variables, 10 attributes). I couldn't see a simple way to incorporate that, although maybe it's not needed if the sections can be collapsed by setting an option (e.g. `xr.set_options(display_expand_attrs=False)`)? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,657792526