SolvedIJulia.jl Previously Installed Jupyter distribution cant find Julia

So I have a previously installed version of conda and jupyter that I want to use. Since the conda distribution for IJulia is currently not working on windows, I attempted to simply install Julia, change the ENV variable to

ENV["JUPYTER"] = "C:\\Users\\Haru\\Miniconda3\\share\\jupyter\\" 

then installed IJulia the normal way:

using Pkg
Pkg.add("IJulia")

and then i opened my previous Jupyter distribution and when i attempted to start the Julia Kernel i recieved the error:

Traceback (most recent call last):
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\web.py", line 1592, in _execute
    result = yield result
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 73, in post
    type=mtype))
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Haru\Miniconda3\lib\site-packages\tornado\gen.py", line 326, in wrapper
    yielded = next(result)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 160, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
    **kw)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:\Users\Haru\Miniconda3\lib\site-packages\jupyter_client\launcher.py", line 138, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:\Users\Haru\Miniconda3\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Users\Haru\Miniconda3\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

Is this because of Jupyter not knowing where Julia is installed? How do I tell it where for it to look for Julia?

16 Answers

✔️Accepted Answer

You don't need to set JUPYTER — the kernel configuration file is installed in a location that should be visible to all Jupyter installations. Have you tried Pkg.build("IJulia") in case your Julia installation has moved since you first installed it?

Related Issues:

12
IJulia.jl Previously Installed Jupyter distribution cant find Julia
You don't need to set JUPYTER — the kernel configuration file is installed in a location that should...