Julia with Jupyter

在Jupyter中使用Julia

Posted by Algebra-FUN on March 27, 2021

Julia with Jupyter

Use Julia in Jupyter Lab

What do we need

I think the reader should have the experience about using Jupyter Notebook or Lab, so I won’t introduce how to install Jupyter Lab Here.

Install IJuila

using Pkg
Pkg.add("IJulia")

This process will install julia kernel to jupyter automatically

We don’t recommend cmd install pkg

Checking

See if the kernel is installed.

jupyter kernelspec list

If you can see julia here, indicating it has been installed successfully. And also you can start Jupyter Lab to see the performance.

If failed

However, may be you can’t see the julia kernel in the list, you can use following script to solve this problem manually.

using IJulia
installkernel("Julia", "--depwarn=no")

And check again.