arviz-devs / InferenceObjects.jl

Storage for results of Bayesian inference
https://julia.arviz.org/InferenceObjects
MIT License
14 stars 1 forks source link

Improving the HTML representation of InferenceData #10

Open sethaxen opened 2 years ago

sethaxen commented 2 years ago

Python ArviZ has a really nice HTML representation of their InferenceData that expands xarray's own fancy HTML representation of xarray.Datasets. I believe this representation uses both CSS and javascript. You can see it in action here: https://python.arviz.org/en/latest/getting_started/XarrayforArviZ.html

Similarly, we use <details> show the groups of InferenceData and <code> to show the plaintext representation of Dataset. See, for example, https://julia.arviz.org/stable/working_with_inference_data/. The goal of such a representation is to make it easy for IJulia and Pluto users, as well as users of websites that display InferenceData objects, to get a sense for the structure of the data.

There are a few improvements we should consider making: