Skip to content

Commit 0f328e6

Browse files
committed
Julia 0.6 needs Jupyter from py35 environment
1 parent 18cbf55 commit 0f328e6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

repo2docker/buildpacks/julia/julia_require.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ def get_build_env(self):
8282
else:
8383
julia_arch = "x86_64"
8484
julia_arch_short = "x64"
85+
86+
if V(self.julia_version) < V("0.7"):
87+
# IJulia with Julia 0.6 isn't compatible with more recent jupyter-core
88+
# point it to the one in the kernel env
89+
# I _think_ this is only relevant during installation
90+
jupyter = "${KERNEL_PYTHON_PREFIX}/bin/jupyter"
91+
else:
92+
jupyter = "${NB_PYTHON_PREFIX}/bin/jupyter"
8593
return super().get_build_env() + [
8694
("JULIA_PATH", "${APP_BASE}/julia"),
8795
("JULIA_HOME", "${JULIA_PATH}/bin"), # julia <= 0.6
@@ -91,7 +99,7 @@ def get_build_env(self):
9199
("JULIA_VERSION", self.julia_version),
92100
("JULIA_ARCH", julia_arch),
93101
("JULIA_ARCH_SHORT", julia_arch_short),
94-
("JUPYTER", "${NB_PYTHON_PREFIX}/bin/jupyter"),
102+
("JUPYTER", jupyter),
95103
]
96104

97105
def get_path(self):

0 commit comments

Comments
 (0)