Open hcferguson opened 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 ?
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 anasdf
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.