# Multiple Julia environments in Jupyter

**URL:** <https://discourse.julialang.org/t/multiple-julia-environments-in-jupyter/72392>\
**Category:** New to Julia\
**Tags:** ijulia\
**Created:** [December 1, 2021, 5:56pm UTC](https://discourse.julialang.org/t/multiple-julia-environments-in-jupyter/72392 "2021-12-01T17:56:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dodoplus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dodoplus/32/30148_2.png) [@dodoplus](https://discourse.julialang.org/u/dodoplus)\
**Post date:** [December 1, 2021, 5:56pm UTC](https://discourse.julialang.org/t/multiple-julia-environments-in-jupyter/72392/1 "2021-12-01T17:56:48Z")

</div>

Hi,

I want to play with the new Apple Silicon Julia 1.7 without (yet) replacing my x86 environment. Therefore, I’d like to add another kernel with its own environment to Jupyter.

Is there an easy (or not so easy) way to achieve that?

It’s relatively easy to do so with Python.

Thanks,  
DD

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [December 1, 2021, 6:00pm UTC](https://discourse.julialang.org/t/multiple-julia-environments-in-jupyter/72392/2 "2021-12-01T18:00:54Z")

</div>

[`IJulia.installkernel`](https://julialang.github.io/IJulia.jl/stable/library/public/#IJulia.installkernel)

---

<div class="post-metadata">

**Author:** ![dodoplus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dodoplus/32/30148_2.png) [@dodoplus](https://discourse.julialang.org/u/dodoplus)\
**Post date:** [December 1, 2021, 6:21pm UTC](https://discourse.julialang.org/t/multiple-julia-environments-in-jupyter/72392/3 "2021-12-01T18:21:01Z")

</div>

I’ve created a new environment and `Pkg.add`ed `IJulia` to it and run:

```julia
installkernel(
    "Julia AA64",
    env=Dict("JULIA_PROJECT"=>"~/myenv"))

```

(with my new environment)

Unfortunately, I’m getting errors from Jupyter:

```julia
in expression starting at ~/.julia/packages/IJulia/e8kqU/src/kernel.jl:1
[I 2021-12-01 20:16:57.559 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
ERROR: LoadError: ArgumentError: Package IJulia not found in current path:
- Run `import Pkg; Pkg.add("IJulia")` to install the IJulia package.

```

Note the path to `kernel.jl` is for the “old” Julia environment and that I’ve installed IJulia in the environment.
