Jld2 preview in vscode?

I use JLD2.jl to store simulation results which I find pretty convenient.

I wonder if there is a plan to add a preview/explorer feature for this type of file in vscode.

Json files are nicer for a having a quick look on their content but, AFAIU, this format is not really suitable to store large numerical results (like large arrays of floats).

Any thought ?

1 Like

No plans, but I really like the idea. Feel free to open a feature request.

4 Likes

Dedicated support for JLD2 sounds great.
I think, a lot should already be possible with HDF5 Preview - Visual Studio Marketplace

since JLD2 files is really just HDF5 with a few extras (mapping to julia structs).

5 Likes

Done :wink:

Yes, I even try to change the jld2 extension to hdf5 and open it with this vscode extension but it does not work as is.

Is anyone interested in collaborating on this?
I could build a minimal version of JLD2 that would allow extracting metadata and maybe reading standard data types. It would need a vscode extension frontend to wrap it.

1 Like

I know that @ffevotte made some experiment on this topic.

I made experiments building a standalone Electron app to preview the contents of JLD2 files. But I think this is mostly different from building a VScode extension.

1 Like

The julia-vscode related open issue is here:

https://github.com/julia-vscode/julia-vscode/issues/2863

1 Like