Skip to content
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

FR: Provide option for collapsing the HTML display in notebooks #4229

Closed
michaelaye opened this issue Jul 16, 2020 · 1 comment · Fixed by #5126 or #5235
Closed

FR: Provide option for collapsing the HTML display in notebooks #4229

michaelaye opened this issue Jul 16, 2020 · 1 comment · Fixed by #5126 or #5235

Comments

@michaelaye
Copy link

Issue description

The overly long output of the text repr of xarray always bugged so I was very happy that the recently implemented html repr collapsed the data part, and equally sad to see that 0.16.0 reverted that, IMHO, correct design implementation back, presumably to align it with the text repr.

Suggested solution

As the opinions will vary on what a good repr should do, similar to existing xarray.set_options I would like to have an option that let's me control if the data part (and maybe other parts?) appear in a collapsed fashion for the html repr.

Additional questions

  • Is it worth considering this as well for the text repr? Or is that harder to implement?

Any guidance on

  • which files need to change
  • potential pitfalls

would be welcome. I'm happy to work on this, as I seem to be the only one not liking the current implementation.

@michaelaye michaelaye changed the title Provide option for collapsing the HTML display in notebooks FR: Provide option for collapsing the HTML display in notebooks Jul 16, 2020
@michaelaye
Copy link
Author

Related: #4182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment