Skip to content

Commit ae09ccf

Browse files
authored
fix: jupyterlab install fails when user has it in requirements (#42)
* feat(test): add case where jupyter is also installed by the user * fix: unset PYTHONPATH to ensure no error in jupyter installation
1 parent 878cb35 commit ae09ccf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

buildpacks/jupyterlab/bin/build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ mkdir -p "${jupyter_layer_dir}"/bin
1313
mkdir -p "${cache_layer_dir}"
1414
mkdir -p "${launch_env_dir}"
1515

16+
unset PYTHONPATH
1617
conda config --remove channels defaults
1718
conda config --add pkgs_dirs "${cache_layer_dir}"
1819
conda env create -y -p "${jupyter_environment_dir}" -f "${buildpack_dir}/bin/jupyter-environment.yml"

samples/jupyter/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jupyterlab

0 commit comments

Comments
 (0)