# How to reuse a local python environment when starting Julia Jupyter notebook?

**URL:** <https://discourse.julialang.org/t/how-to-reuse-a-local-python-environment-when-starting-julia-jupyter-notebook/110847>\
**Category:** General Usage\
**Tags:** pythoncall\
**Created:** [February 27, 2024, 2:23pm UTC](https://discourse.julialang.org/t/how-to-reuse-a-local-python-environment-when-starting-julia-jupyter-notebook/110847 "2024-02-27T14:23:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Post date:** [February 27, 2024, 2:23pm UTC](https://discourse.julialang.org/t/how-to-reuse-a-local-python-environment-when-starting-julia-jupyter-notebook/110847/1 "2024-02-27T14:23:10Z")

</div>

I have configured a micromamba environment _plot_ manually with all dependencies satisfied. And I want PythonCall.jl (or CondaPkg.jl) to use this environment. In terminal and Julia REPL, I can make it as follows:

```julia
PS C:\Users\lenovo> micromamba activate plot
(plot) PS C:\Users\lenovo> julia

julia> ENV["JULIA_CONDAPKG_BACKEND"] = "Null"
"Null"

julia> using PythonCall

```

Now I want to write code in a Jupyter notebook in VS code. How can I make the notebook inherit in the existing _plot_ Python environment?  
Note that, in VS code, I simply create a file “hello.ipynb” and then open it.
