Hi!
Sorry for replying to an old thread.
I am also using jupyterhub and am trying to install julia-0.6.4 kernel on it. This is what I did:
sudo su -
- I added Julia’s path to
~/.bashrc
: export PATH="/home/ubuntu/julia-9d11f62bcb/bin:$PATH"
- I added
IJulia
package: Pkg.add("IJulia")
- I carried out @sylvaticus steps. I copied all the files form
/root/.local/share/jupyter/kernels/julia-0.6/
to /usr/local/share/jupyter/kernels/julia-0.6
I changed the kernel.json
file:
{
"display_name": "Julia 0.6.4",
"argv": [
"/home/ubuntu/julia-9d11f62bcb/bin/julia",
"-i",
"--startup-file=yes",
"--color=yes",
"/usr/local/share/jupyter/kernels/julia-0.6/kernel.jl",
"{connection_file}"
],
"language": "julia"
}
On running jupyter-kernelspec list
:
julia-0.6 /usr/local/share/jupyter/kernels/julia-0.6
5. After this, I carry out the steps mentioned by @fabiangans, I revised my kernel.json
file:
{
"display_name": "Julia 0.6.4",
"argv": [
"/usr/local/share/jupyter/kernels/julia-0.6/julia_0.6.4_bin.sh",
"-i",
"--startup-file=yes",
"--color=yes",
"/usr/local/share/jupyter/kernels/julia-0.6/kernel.jl",
"{connection_file}"
],
"language": "julia"
}
And this is what my /root/julia_0.6.4_bin.sh
says:
#!/bin/bash --login
export JULIA_PKGDIR="/home/${USER}/.julia"
# Check if IJulia is already installed by the user
if [ ! -d "${JULIA_PKGDIR}/v0.6/IJulia" ]; then
mkdir -p "${JULIA_PKGDIR}/v0.6"
cp -r /home/ubuntu/.julia/v0.6/* "${JULIA_PKGDIR}/v0.6"
fi
julia $*
I have added 5 users and when I run jupyterhub
from root
, the kernel Julia-0.6
is displayed in the dropdown list. When I open a file using that kernel, this is what the log says:
ERROR: LoadError: ZMQ.StateError("Address already in use")
Stacktrace:
[1] [I 2018-07-26 03:53:50.942 SingleUserNotebookApp log:158] 200 GET /user/vishwesh/api/contents/Untitled.ipynb?content=0&_=1532577109578 (vishwesh@::ffff:103.242.62.49) 1.77ms
bind(::ZMQ.Socket, ::String) at /home/vishwesh/.julia/v0.6/ZMQ/src/ZMQ.jl:288
[2] init(::Array{String,1}) at /home/vishwesh/.julia/v0.6/IJulia/src/init.jl:99
[3] include_from_node1(::String) at ./loading.jl:576
[4] include(::String) at ./sysimg.jl:14
[5] process_options(::Base.JLOptions) at ./client.jl:305
[6] _start() at ./client.jl:371
while loading /usr/local/share/jupyter/kernels/julia-0.6/kernel.jl, in expression starting on line 9
Can someone please help me out with this?