# Sharing variables between Notebook and REPL in Visual Studio or JupyterLab

**URL:** https://discourse.julialang.org/t/sharing-variables-between-notebook-and-repl-in-visual-studio-or-jupyterlab/88797
**Category:** General Usage
**Tags:** question
**Created:** [October 16, 2022, 10:26am UTC](https://discourse.julialang.org/t/sharing-variables-between-notebook-and-repl-in-visual-studio-or-jupyterlab/88797 "2022-10-16T10:26:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)
#### Post date: [October 16, 2022, 10:26am UTC](https://discourse.julialang.org/t/sharing-variables-between-notebook-and-repl-in-visual-studio-or-jupyterlab/88797/1 "2022-10-16T10:26:00Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![jlbosse](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlbosse/32/11274_2.png) [@jlbosse](https://discourse.julialang.org/u/jlbosse)
#### Post date: [October 17, 2022, 10:01pm UTC](https://discourse.julialang.org/t/sharing-variables-between-notebook-and-repl-in-visual-studio-or-jupyterlab/88797/2 "2022-10-17T22:01:15Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)
#### Post date: [October 17, 2022, 10:04pm UTC](https://discourse.julialang.org/t/sharing-variables-between-notebook-and-repl-in-visual-studio-or-jupyterlab/88797/3 "2022-10-17T22:04:39Z")

</div>

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]
