asdf-format / asdf

ASDF (Advanced Scientific Data Format) is a next generation interchange format for scientific data
http://asdf.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
528 stars 58 forks source link

asdf.show_in_notebook() ? #774

Open hcferguson opened 4 years ago

hcferguson commented 4 years ago

I find the Astropy table default rendering in notebooks to be quite nice. The show_in_notebook() rendering is even nicer, and interactive. The astropy code for doing this could form a good basis for an asdf show_in_notebook() interactive viewer.

I took a look at the datatables javascript library, and it does have some support for hierarchical data structures, so might form a basis for a similar viewer for asdf headers. It's unclear to me how well this might work once the tree gets several levels deep.

I also found Tabulator, which seems to have a bit more support for nested data structures in their examples. The examples also discuss including graphics and making fields editable. Looks quite promising to me.

Both datatables and tabulator are MIT licensed.

CagtayFabry commented 4 years ago

Having a nice notebook rendering for ASDF files would be awesome.

What do you think about building a simple Jupyter(Lab)-Extension that outputs similar to https://github.com/jupyter-attic/jupyterlab_json https://github.com/QuantStack/ipytree ?