asdf icon indicating copy to clipboard operation
asdf copied to clipboard

asdf.show_in_notebook() ?

Open hcferguson opened this issue 5 years ago • 1 comments

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.

hcferguson avatar Mar 23 '20 15:03 hcferguson

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 ?

CagtayFabry avatar Jul 03 '20 06:07 CagtayFabry