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

HTML repr for chunked variables with high dimensionality #8966

Open
TomNicholas opened this issue Apr 23, 2024 · 1 comment
Open

HTML repr for chunked variables with high dimensionality #8966

TomNicholas opened this issue Apr 23, 2024 · 1 comment

Comments

@TomNicholas
Copy link
Contributor

What is your issue?

The graphical representation of dask arrays with many dimensions can end up off the page in the HTML repr.

Screenshot 2024-04-23 at 6 00 04 PM

Ideally dask would worry about this for us, and we just use their _inline_repr, as mentioned here #4376 (comment)

@benbovy
Copy link
Member

benbovy commented Apr 24, 2024

Note that this is the full repr that is shown in the screenshot (not the inline repr).

One solution on the Xarray side could be to tweak the overflow-x CSS property of the (dask or other) array repr HTML container, e.g., likely change its value from "hidden" to "scroll". Although this will show a scrollbar in the case above so that may not look very nice either.

Or another solution on the Dask side is to update their full repr so that it is better displayed when wrapped in containers of smaller sizes.

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

No branches or pull requests

2 participants