-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pre-expand data and attributes in DataArray/Variable HTML repr? #4176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pydata/xarray any opinions here? |
Looks great to me. |
Looks good to me too. Perhaps it would be nice to add some more display options later, so that users will have more control on that? |
* Show data by default in HTML repr for DataArray Fixes GH-4176 * add whats new for html repr * fix test
Is there a way to configure this? I would prefer the data and attributes to be collapsed in the project I'm currently working on. |
I had a look at the source, there isn't. I might look into implementing this if there is enough interest. |
You could help finish up #4230 |
Thanks, I'll have a look and see what I can do. |
Proposal
Given that a major purpose for plotting an array is to look at data or attributes, I wonder if we should expand these sections by default?
Context
Currently the HTML repr for DataArray/Variable looks like this:

To see array data, you have to click on the
icon:

(thanks to @max-sixty for making this a little bit more manageably sized in #3905!)
There's also a really nice repr for nested dask arrays:

The text was updated successfully, but these errors were encountered: