zarr-developers / VirtualiZarr

Create virtual Zarr stores from archival data files using xarray syntax
https://virtualizarr.readthedocs.io/en/stable/api.html
Apache License 2.0
105 stars 22 forks source link

HTML repr for ManifestArray? #59

Open TomNicholas opened 7 months ago

TomNicholas commented 7 months ago

HTML reprs are cool. We could make one for ManifestArray, by stealing the code used for the dask.Array (or cubed.Array) repr. It might help with visualising the chunking pattern, and provide more places we can display attributes like the compression codecs.

Should probably wait until https://github.com/TomNicholas/VirtualiZarr/issues/33 to guarantee that the chunks actually form a complete grid.

rabernat commented 7 months ago

For that matter, we could also have this for a regular Zarr array, no?

jsignell commented 5 months ago

Is html still the way or do people prefer to lean on rich these days?

TomNicholas commented 5 months ago

I don't know anything about rich, but I think xarray is still using HTML right?

jsignell commented 5 months ago

I don't know anything about rich, but I think xarray is still using HTML right?

It is.

I did a little digging to try to turn up some rich work that was happening in dask world a few years back but didn't find what I was looking for.

I suppose that the benefit of the pure css + html approach is that (at least in theory) it works everywhere.