I have a fresh Julia instalation on a machine that I want to use as a number-crunching server for various persons on a lab. There seems to be this nice package called jupyterhub wich makes the Jupyter Notebook interface avaible to various clients simultaneusly. A web page which I am unable to find again began suggesting something like "first install IJulia globally, then install JupyterHub..."
I cannot seem to find a nice way to install ONE package globally.
Update
In Julia-v0.7+, we need to use
JULIA_DEPOT_PATH
instead ofJULIA_PKGDIR
and theLOAD_PATH
looks something like this:Old Post
I don't know whether this is true or not, by following these steps below, you can install
IJulia
after you installedJupyterhub
.Install packages system-wide/globally for every user
this question has already been answered here by Stefan Karpinski. so what we need is just use this method to install the
IJulia.jl
package.Make IJulia working with Jupyterhub
in order to make
IJulia
andJupyterhub
working with each other for all the users, you should copy the folderyour/user/.local/share/jupyter/kernels/julia/
to/usr/local/share/jupyter/kernels/
. I write down some of the steps that I used in my test Dockerfile. the code is ugly, but it works.Steps: (after you successfully installed Jupyterhub)
note that, you should do the following steps as root and I assume that your julia was globally installed at
/opt/julia_0.4.0/
.make our global package directory and set up
JULIA_PKGDIR
:install "IJulia" using package manager:
copy
kernelspec
s to/usr/local/share/jupyter/kernels/
which can be used by any new user added byJupyterhub
: