Sharing variables between Jupyter notebooks

Hi!
I was wondering if there is a way to share variables between Jupyter notebooks in Julia. I tried

shareList = [3^i for i in 1:5]
%store shareList

Error:

Unrecognized magic %store.
Julia does not use the IPython %magic syntax. To interact with the IJulia kernel, use IJulia.somefunction(…), for example. Julia macros, string macros, and functions can be used to accomplish most of the other functionalities of IPython magics.

Any suggestions please? Thanks!

You can use JLD.jl to store Julia variables in a file. Or use NBInclude.jl to include one notebook in another.

2 Likes

Thanks! @stevengj