I'm sure this has been asked before, but I can't find an answer.

Given a .jld files, how do I inspect it to list the variables it contains?

Right now I'm resorting to
before=Set(names(Main))
@load "data.jld"
after = Set(names(Main))
varnames = collect(setdiff(after,before))

That works but is obviously ugly and error prone, ie. if I have a variable 
defined before the @load it wont come up in varnames.

What's the canonical way of doing this?

Reply via email to