yourVar = 'data or your variable'
%store yourVar
del yourVar # only deletes the variable in this notebook but not in store
In the second notebook:
%store -r yourVar # if you have a variable with the same name, it will rewrite it.
yourVar
To list and delete the stored variable:
%store #list variable in store
%store -d yourVar #delete the variable in store
Source:
https://stackoverflow.com/questions/35935670/share-variables-between-different-jupyter-notebooks
https://ipython.org/ipython-doc/rel-0.12/config/extensions/storemagic.html