# Sharing variables between Jupyter notebooks

**URL:** https://discourse.julialang.org/t/sharing-variables-between-jupyter-notebooks/13593
**Category:** General Usage
**Created:** [August 17, 2018, 12:27am UTC](https://discourse.julialang.org/t/sharing-variables-between-jupyter-notebooks/13593 "2018-08-17T00:27:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![microlifecc](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@microlifecc](https://discourse.julialang.org/u/microlifecc)
#### Post date: [August 17, 2018, 12:27am UTC](https://discourse.julialang.org/t/sharing-variables-between-jupyter-notebooks/13593/1 "2018-08-17T00:27:29Z")

</div>

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

```julia
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!

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [August 17, 2018, 1:28am UTC](https://discourse.julialang.org/t/sharing-variables-between-jupyter-notebooks/13593/2 "2018-08-17T01:28:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![microlifecc](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@microlifecc](https://discourse.julialang.org/u/microlifecc)
#### Post date: [August 17, 2018, 2:06am UTC](https://discourse.julialang.org/t/sharing-variables-between-jupyter-notebooks/13593/3 "2018-08-17T02:06:12Z")

</div>

Thanks! @stevengj
