home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 814059710

This data as json

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-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 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
Powered by Datasette · Queries took 0.616ms · About: xarray-datasette