Sharing variables between Notebook and REPL in Visual Studio or JupyterLab

Is it possible to share variables (or Julia instance) between a Jupyter-style notebook and a REPL, either in Visual Studio or JupyterLab?

Thanks for any help.

In jupyter lab, if you right click on the tab containing your Notebook you can open a REPL connected to the same kernel with “New console for Notebook”. Maybe that helps?

Exactly what I was looking for. I’ll see if it works in Visual Studio (which I have found to be more stable for Julia than JupyterLab generally).
Thank you so much!
[PS I tried but could not find this option in Visual Studio - it must not have been implemented]