Skip to content

Commit

Permalink
dd
Browse files Browse the repository at this point in the history
  • Loading branch information
calderjo committed Nov 25, 2024
1 parent a06316a commit 1b9cb27
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,24 +173,6 @@ RUN export PATH=/usr/local/cuda/bin:$PATH && \
/tmp/clean-layer.sh
{{ end }}


# b/308525631: Pin Matplotlib until seaborn can be upgraded
# to >0.13.0 (now it's stuck by a package conflict with ydata-profiling 4.5.1).
RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
pip install --upgrade \
"matplotlib<3.8.0" \
# ipympl adds interactive widget support for matplotlib
ipympl==0.7.0 \
"seaborn==0.12.2" \
pyupset \
python-dateutil dask dask-expr igraph \
pyyaml joblib geopy mne pyshp \
pandas \
polars \
flax \
"${JAXVER}" && \
/tmp/clean-layer.sh

RUN apt-get update && \
apt-get install -y default-jre && \
/tmp/clean-layer.sh
Expand Down Expand Up @@ -482,7 +464,6 @@ RUN pip install wandb \
rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
pip install "numpy==1.26.4" && \
pip install pytorch-ignite \
"matplotlib==3.7.5"\
qgrid \
bqplot \
earthengine-api \
Expand All @@ -496,7 +477,7 @@ RUN pip install wandb \
"shapely<2" \
pydub \
pydegensac \
"torchmetrics==1.5.1" \
torchmetrics \
pytorch-lightning \
sympy \
# flask is used by agents in the simulation competitions.
Expand Down Expand Up @@ -546,11 +527,30 @@ ENV TESSERACT_PATH=/usr/bin/tesseract \
# For Theano with MKL
MKL_THREADING_LAYER=GNU

# b/308525631: Pin Matplotlib until seaborn can be upgraded
# to >0.13.0 (now it's stuck by a package conflict with ydata-profiling 4.5.1).
RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
pip install --upgrade \
"matplotlib==3.7.5" \
# ipympl adds interactive widget support for matplotlib
ipympl==0.7.0 \
"seaborn==0.12.2" \
pyupset \
python-dateutil dask dask-expr igraph \
pyyaml joblib geopy mne pyshp \
pandas \
polars \
flax \
"${JAXVER}" && \
/tmp/clean-layer.sh

# Temporary fixes and patches
# Temporary patch for Dask getting downgraded, which breaks Keras
RUN pip install --upgrade dask && \
# Stop jupyter nbconvert trying to rewrite its folder hierarchy
mkdir -p /root/.jupyter && touch /root/.jupyter/jupyter_nbconvert_config.py && touch /root/.jupyter/migrated && \
# TODO(b/380921973): Ensure only matplotlib 3.7.5 files are present.
rm -r /opt/conda/lib/python3.10/site-packages/matplotlib-3.9.2.dist-info/ && \
mkdir -p /.jupyter && touch /.jupyter/jupyter_nbconvert_config.py && touch /.jupyter/migrated && \
# Stop Matplotlib printing junk to the console on first load
sed -i "s/^.*Matplotlib is building the font cache using fc-list.*$/# Warning removed by Kaggle/g" /opt/conda/lib/python3.10/site-packages/matplotlib/font_manager.py && \
Expand Down

0 comments on commit 1b9cb27

Please sign in to comment.