Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you save your session in Julia

Tags:

julia

Im very new to Julia and was trying to save my session (all the values, including functions for example) and didnt see any easy way. There seems to be a pretty complete low level write function for ints, floats, arrays, etc. But it doesnt, for example, write a DataFrames. Is there an easy way to do this or do I need to code all this from scratch? Im using V0.2.1.

like image 543
Alan Berezin Avatar asked Oct 01 '22 18:10

Alan Berezin


2 Answers

Have you tried using the iJulia notebook? This might be useful for what you're describing. https://github.com/JuliaLang/IJulia.jl

like image 117
ntaggart Avatar answered Oct 17 '22 22:10

ntaggart


You can do this with HDF5.jl. I don't know how well it works for functions, but it should work fine for data frames and any other native Julia type.

For functions you want to keep, I would probably just define them in a regular .jl file and include("def.jl") at the start of the session, for example.

like image 33
one-more-minute Avatar answered Oct 17 '22 23:10

one-more-minute