fastplotlib / fastplotlib

Next-gen fast plotting library running on WGPU using the pygfx rendering engine
https://fastplotlib.readthedocs.io/
Apache License 2.0
348 stars 33 forks source link

More repr stuff in html! #428

Open kushalkolar opened 3 months ago

kushalkolar commented 3 months ago

From Almar's idea, we could make some really nice reprs for notebooks kinda like what xarray does :smile:

image

For graphics we can have an expandable table with the following:

For graphic features:

For plots and gridplots:

@clewis7 thoughts?

clewis7 commented 3 months ago

I think this sounds like a good idea! I'm trying to think how relevant it would be to expand a data array or just whatever the array repr returns...

kushalkolar commented 1 month ago

This is the HTML repr formatting module in xarray:

https://github.com/pydata/xarray/blob/main/xarray/core/formatting_html.py