Skip to content

Commit

Permalink
attempt to fix ipython
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton authored Dec 3, 2024
1 parent 4140b24 commit c6bbac0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,23 @@ COPY env.yml /tmp/env.yml

RUN mamba env create --file /tmp/env.yml && \
eval "$(conda shell.bash hook)" && \
conda activate ${KERNEL} && \
mamba activate ${KERNEL} && \
mkdir -p $CONDA_PREFIX/etc/conda/activate.d && \
# CUDNN_PATH=$(dirname $(python -c "import nvidia.cudnn;print(nvidia.cudnn.__file__)")) && \
# echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/:$CUDNN_PATH/lib' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh && \
python -m ipykernel install --name=${KERNEL} && \
python -m ipykernel install --name=${KERNEL} --display-name "Python (${KERNEL})" && \

# conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# 3) install packages using notebook user
USER jovyan

RUN eval "$(conda shell.bash hook)" && \
conda activate ${KERNEL} && \
python -m ipykernel install --user --name=${KERNEL} --display-name "Python (${KERNEL})"

# other packages here...

# From the "original" 2022 version:
Expand Down

0 comments on commit c6bbac0

Please sign in to comment.