Multiple Julia environments in Jupyter


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.



I’ve created a new environment and Pkg.added IJulia to it and run:

    "Julia AA64",

(with my new environment)

Unfortunately, I’m getting errors from Jupyter:

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.