silx-kit / h5web

React components for data visualization and exploration

Home Page:https://h5web.panosc.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add rich display for NXnotes

loichuder opened this issue · comments

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