0

In order to use Jupyter notebook in Julia, one can install it through Julia. The steps to get Jupyter up and running are:

julia> ]
pkg> add IJulia
julia> using IJulia
julia> notebook()

However, that could give a pipeline_error:

julia> notebook()
install Jupyter via Conda, y/n? [y]: y
[ Info: Downloading miniconda installer ...
[ Info: Installing miniconda ...
ERROR: failed process: Process(`'C:\Users\...\AppData\Local\Temp\installer.exe' /S --no-shortcuts /NoRegistry=1 /AddToPath=0 /RegisterPython=0 '/D=D:\...\Julia\packages\conda\3\x86_64'`, ProcessExited(2)) [2]

Stacktrace:
 [1] pipeline_error
   @ .\process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base .\process.jl:480
 [3] run
   @ .\process.jl:477 [inlined]
 [4] _install_conda(env::String, force::Bool)  
   @ Conda D:\...\Julia\packages\packages\Conda\2lg2O\src\Conda.jl:228
 [5] _install_conda(env::String)
   @ Conda D:\...\Julia\packages\packages\Conda\2lg2O\src\Conda.jl:191
 [6] top-level scope
   @ REPL[28]:1
Jens Wagemaker
  • 354
  • 3
  • 13

1 Answers1

0

The problem is that miniforge (or possibly miniconda) does not allow an installation directory with more than 46 characters ("The installation path should be shorter than 46 characters".)

So the solution is to place the Julia depot in a sufficiently short path, for instance "D:\programs\JLpkg". To specify the Julia depot path, you need set the environment variable: JULIA_DEPOT_PATH.

Jens Wagemaker
  • 354
  • 3
  • 13