You can save your session in Julia

Im very new to Julia and tried to save my session (all values, including, for example, functions), and did not see any easy way. It seems like a pretty complete low level write function for ints, floats, arrays, etc. But this, for example, does not write DataFrames. Is there an easy way to do this or do I need to encode all of this from scratch? Im using V0.2.1.

+4
source share
4 answers

Have you tried using the iJulia laptop? This may be useful for what you are describing. https://github.com/JuliaLang/IJulia.jl

+3
source

HDF5.jl. , , Julia.

, , , , .jl include("def.jl") , .

+1
0

, Julia (JLD). https://github.com/JuliaIO/JLD.jl

, ,

type Model  
  version::String  
  id::String  
  equations::Vector{Equation}  
  coefs::Vector{Matrix}  
end  

using JLD
save("MODEL.jld", "modelS", model1)

pathReport = joinpath(homedir(),".julia/v0.5/foo/test")
m = JLD.load(joinpath(pathReport, "MODEL.jld"))
model2 = m["modelS"]
model2.equations[1].terms[2] == "EX_01" 
0

Source: https://habr.com/ru/post/1541058/


All Articles