# Jld2 preview in vscode?

**URL:** <https://discourse.julialang.org/t/jld2-preview-in-vscode/80050>\
**Category:** VS Code\
**Tags:** question, jld2\
**Created:** [April 26, 2022, 12:01pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050 "2022-04-26T12:01:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [April 26, 2022, 12:01pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/1 "2022-04-26T12:01:33Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [April 26, 2022, 12:35pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/2 "2022-04-26T12:35:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JonasIsensee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonasisensee/32/4704_2.png) [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Post date:** [April 26, 2022, 12:39pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/3 "2022-04-26T12:39:29Z")

</div>

Dedicated support for JLD2 sounds great.  
I think, a lot should already be possible with [HDF5 Preview - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=lochbrunner.vscode-hdf5-viewer)

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

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [April 26, 2022, 2:18pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/4 "2022-04-26T14:18:22Z")

</div>

Done 😉

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [April 26, 2022, 2:19pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/5 "2022-04-26T14:19:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JonasIsensee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonasisensee/32/4704_2.png) [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Post date:** [July 4, 2022, 8:06am UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/6 "2022-07-04T08:06:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [July 4, 2022, 8:09am UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/7 "2022-07-04T08:09:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ffevotte](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffevotte/32/6587_2.png) [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Post date:** [July 4, 2022, 8:14am UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/8 "2022-07-04T08:14:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [July 4, 2022, 2:02pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/9 "2022-07-04T14:02:07Z")

</div>

The julia-vscode related open issue is here:

[https://github.com/julia-vscode/julia-vscode/issues/2863](https://github.com/julia-vscode/julia-vscode/issues/2863)

---

<div class="post-metadata">

**Author:** ![hz-xiaxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hz-xiaxz/32/209585_2.png) [@hz-xiaxz](https://discourse.julialang.org/u/hz-xiaxz)\
**Post date:** [August 21, 2024, 4:43pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050/10 "2024-08-21T16:43:18Z")

</div>

Also post my github comment here:  
[GitHub - silx-kit/vscode-h5web: VSCode extension to explore and visualize HDF5 files](https://github.com/silx-kit/vscode-h5web) H5web is a lovely HDF5 reader in vscode that I’ve frequently used. It supports many formats other than `.h5` and is open to extensions. I wonder if anyone can work on the JLD2 reader with h5web?
