Use proper location for IJulia kernel
MODIFY
repo2docker/buildpacks/julia/julia_project.py
repo2docker/buildpacks/julia/julia_project.py
@@ -118,7 +118,7 @@ class JuliaProjectTomlBuildPack(PythonBuildPack):
(
"${NB_USER}",
r"""
- julia -e "using Pkg; Pkg.add(\"IJulia\"); using IJulia; installkernel(\"Julia\", \"--project=${REPO_DIR}\", env=Dict(\"JUPYTER_DATA_DIR\"=>\"/srv/conda/share/jupyter\"));" && \
+ julia -e "using Pkg; Pkg.add(\"IJulia\"); using IJulia; installkernel(\"Julia\", \"--project=${REPO_DIR}\", env=Dict(\"JUPYTER_DATA_DIR\"=>\"${APP_BASE}/conda/share/jupyter\"));" && \
julia --project=${REPO_DIR} -e 'using Pkg; Pkg.instantiate(); pkg"precompile"'
"""
)

MODIFY
repo2docker/buildpacks/julia/julia_require.py
repo2docker/buildpacks/julia/julia_require.py
@@ -119,7 +119,7 @@ class JuliaRequireBuildPack(PythonBuildPack):
# FIXME: Find way to get it to install under /srv and not $HOME?
r"""
julia -e 'if (VERSION > v"0.7-") using Pkg; else Pkg.init(); end; Pkg.add("IJulia"); using IJulia;' && \
- mv ${HOME}/.local/share/jupyter/kernels/julia-${JULIA_VERSION%[.-]*} /srv/conda/share/jupyter/kernels/julia-${JULIA_VERSION%[.-]*}
+ mv ${HOME}/.local/share/jupyter/kernels/julia-${JULIA_VERSION%[.-]*} ${APP_BASE}/conda/share/jupyter/kernels/julia-${JULIA_VERSION%[.-]*}
"""
)
]

Use proper location for IJulia kernel