VirtualiZarr icon indicating copy to clipboard operation
VirtualiZarr copied to clipboard

HTML repr for ManifestArray?

Open TomNicholas opened this issue 1 year ago • 4 comments

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.

TomNicholas avatar Mar 27 '24 21:03 TomNicholas

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

rabernat avatar Mar 27 '24 21:03 rabernat

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

jsignell avatar May 03 '24 18:05 jsignell

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

TomNicholas avatar May 03 '24 19:05 TomNicholas

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.

jsignell avatar May 03 '24 20:05 jsignell