Weird IJulia issue [Help! I really ]

I have a weird IJulia issue. I have just installed the newest version of Julia (I tried both 1.5.3 and 1.6.0-rc1, they have the same issue). I am stuck in this loop:

/Users/reiner_hase/.julia/conda/3/bin/jupyter notebook
[I 23:28:45.638 NotebookApp] JupyterLab extension loaded from /Users/reiner_hase/.julia/conda/3/lib/python3.8/site-packages/jupyterlab
[I 23:28:45.638 NotebookApp] JupyterLab application directory is /Users/reiner_hase/.julia/conda/3/share/jupyter/lab
[I 23:28:45.640 NotebookApp] Serving notebooks from local directory: /Users/reiner_hase
[I 23:28:45.640 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 23:28:45.640 NotebookApp] http://localhost:8888/?token=28252f0048255506ced95e7bab00202a1d57a5fa4c31a1c6
[I 23:28:45.640 NotebookApp]  or http://127.0.0.1:8888/?token=28252f0048255506ced95e7bab00202a1d57a5fa4c31a1c6
[I 23:28:45.640 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 23:28:45.644 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///Users/reiner_hase/Library/Jupyter/runtime/nbserver-4108-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=28252f0048255506ced95e7bab00202a1d57a5fa4c31a1c6
     or http://127.0.0.1:8888/?token=28252f0048255506ced95e7bab00202a1d57a5fa4c31a1c6
/Users/reiner_hase/.julia/conda/3/lib/python3.8/site-packages/jupyter_client/kernelspec.py:252: UserWarning: Invalid kernelspec directory name (Kernel names can only contain ASCII letters and numbers and these separators: - . _ (hyphen, period, and underscore).): /Users/reiner_hase/Library/Jupyter/kernels/julia-(4-threads)-1.6
  d = self.find_kernel_specs()
[I 23:28:57.322 NotebookApp] Creating new notebook in 
[I 23:28:58.005 NotebookApp] Kernel started: 064a14e2-157d-4f23-9feb-2b39e755d6c4, name: julia-1.6
PROFILE = Dict{String, Any}("key" => "7985477b-379484f93b3ded140681eca4", "transport" => "tcp", "signature_scheme" => "hmac-sha256", "shell_port" => 52871, "hb_port" => 52874, "control_port" => 52875, "ip" => "127.0.0.1", "stdin_port" => 52873, "iopub_port" => 52872, "kernel_name" => "julia-1.6")
[I 23:29:04.007 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
PROFILE = Dict{String, Any}("key" => "7985477b-379484f93b3ded140681eca4", "transport" => "tcp", "signature_scheme" => "hmac-sha256", "shell_port" => 52871, "hb_port" => 52874, "control_port" => 52875, "ip" => "127.0.0.1", "stdin_port" => 52873, "iopub_port" => 52872, "kernel_name" => "julia-1.6")
[I 23:29:10.017 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
PROFILE = Dict{String, Any}("key" => "7985477b-379484f93b3ded140681eca4", "transport" => "tcp", "signature_scheme" => "hmac-sha256", "shell_port" => 52871, "hb_port" => 52874, "control_port" => 52875, "ip" => "127.0.0.1", "stdin_port" => 52873, "iopub_port" => 52872, "kernel_name" => "julia-1.6")
[I 23:29:16.028 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
PROFILE = Dict{String, Any}("key" => "7985477b-379484f93b3ded140681eca4", "transport" => "tcp", "signature_scheme" => "hmac-sha256", "shell_port" => 52871, "hb_port" => 52874, "control_port" => 52875, "ip" => "127.0.0.1", "stdin_port" => 52873, "iopub_port" => 52872, "kernel_name" => "julia-1.6")
[I 23:29:22.035 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
PROFILE = Dict{String, Any}("key" => "7985477b-379484f93b3ded140681eca4", "transport" => "tcp", "signature_scheme" => "hmac-sha256", "shell_port" => 52871, "hb_port" => 52874, "control_port" => 52875, "ip" => "127.0.0.1", "stdin_port" => 52873, "iopub_port" => 52872, "kernel_name" => "julia-1.6")
[I 23:29:28.043 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports

I have tried re-installing everything. No use. I tried another user and installed it there - I get an internal server error 500 instead.

I should add: Despite that IJulia was installed with Julia’s Miniconda, only Python3 works fine - not Julia…

This seems pretty clear. You created a custom kernel spec with a name Jupyter doesn’t like. Rename it so that it doesn’t have parens.

3 Likes

That kernel was an example from

https://github.com/JuliaLang/IJulia.jl/blob/master/docs/src/manual/installation.md

but it had a similar problem with julia-1.6-rc1 and even julia-1.6. I only managed to solve the problem by going back to 1.5.3 …

The problem on 1.6 for MacOS is probably this one, which is totally different: IJulia kernel doesn't work for Julia 1.6 on macOS · Issue #968 · JuliaLang/IJulia.jl · GitHub

The details of error messages matter; you have to read through the error output carefully.

1 Like

Thanks! You are totally right!