Contents

Configure Julia into Jupyter Notebook

This blog is written soon after my Configure Matlab into Jupyter Notebook blog. If you’d like to see that one, you can click here. It is easier to install so let’s just get started!

0. References

Similarly, I post the resources articles I referred in here in case you want to try it on your own.

1. Download Julia

There’s no Julia installed in the remote machine. Please take a look at the first document in list to find the instructions tailored to your computer type — Windows, MaxOS, or Linux. I’m on Linux, so I jumped to the section Linux and FreeBSD.

1
2
wget https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.1-linux-x86_64.tar.gz
tar zxvf julia-1.7.1-linux-x86_64.tar.gz

Remember to add Julia’s bin folder to PATH environmental variable so that you can execute Julia anywhere. Otherwise, you need to do <Julia directory>/bin/julia every time.

1
2
3
vim ~/.bashrc
export PATH="$PATH:/path/to/<Julia directory>/bin" / export PATH="/path/to/<Julia directory>/bin:$PATH"
source ~/.bashrc # Don't forget!

Start a new terminal and try go to a folder that’s not Julia’s bin, enter julia, which should work just fine. You will see julia> command line.

2. Add Julia to Jupyter Notebook

Now in the new terminal where you just opened Julia, do:

1
2
using Pkg
Pkg.add("IJulia")

Done! Now open a new jupyter notebook and you should see Julia as an option in your notebook drop-down menu.