silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
165 stars 17 forks source link

Add rich display for NXnotes #1603

Closed loichuder closed 2 months ago

loichuder commented 3 months ago

Is your feature request related to a problem?

When saving processed data in workflows, we usually save the parameters in a NXnote group. The NXnote group contain a data dataset that contain the parameters as JSON and a type dataset that contain the MIME type (here application/json).

When I want to inspect the parameters in H5Web, I look at the data dataset but since it uses the scalar visualization, I get the JSON serialized as a single line which is not very readable.

Requested solution or feature

I would like H5Web to be able to take advantage of the MIME type to be able to present me with a rich display of the data dataset. The same way NxHeatmap is used when clicking on the NXdata group, we could have a NxNote visualisation when clicking on the NXnote.

Alternatives you've considered

None.

Additional context

See /results/integrate/configuration at https://h5web.panosc.eu/h5wasm?url=https%3A%2F%2Fwww.silx.org%2Fpub%2Fh5web%2Fnxnote.h5 for an example