JuliaIO / JLD2.jl

HDF5-compatible file format in pure Julia
Other
550 stars 85 forks source link

Thoughts on addrequire? #39

Open timholy opened 6 years ago

timholy commented 6 years ago

JLD supports addrequire to allow folks to ensure that necessary packages are loaded before objects from a JLD file. If you'd support this, I will eventually get around to submitting a PR.

JonasIsensee commented 3 years ago

This could actually be really neat!

I just took a look at the implementation in JLD. I think it could be improved for JLD2:

f["_requires/DataFrames"] = versionofloadedpackage(DataFrames)

lbenet commented 1 year ago

Any progress on this?

JonasIsensee commented 1 year ago

Hi @lbenet , there is #377 which implements something like this. The PR has been sitting around unused for a while since I wasn't super convinced, it was optimal but it does work. You are welcome to test and give feedback.