Skip to content

Commit 028c699

Browse files
committed
py312
1 parent e756e92 commit 028c699

3 files changed

Lines changed: 11 additions & 19 deletions

File tree

Dockerfile.tmpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ RUN uv pip install \
4141
RUN uv pip install --system --force-reinstall "pynvjitlink-cu12==0.5.2"
4242

4343
# b/385145217 Latest Colab lacks mkl numpy, install it.
44-
RUN uv pip install --system --force-reinstall -i https://pypi.anaconda.org/intel/simple numpy
44+
# RUN uv pip install --system --force-reinstall --index-url https://pypi.anaconda.org/intel/simple numpy==2.0
45+
# RUN uv pip install --system --force-reinstall -i https://pypi.anaconda.org/intel/simple numpy
46+
# https://software.repos.intel.com/python/pypi
4547

4648
# newer daal4py requires tbb>=2022, but libpysal is downgrading it for some reason
4749
RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2"
@@ -57,8 +59,7 @@ ADD clean-layer.sh /tmp/clean-layer.sh
5759
ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl
5860
ADD patches/template_conf.json /opt/kaggle/conf.json
5961

60-
# /opt/conda/lib/python3.11/site-packages
61-
ARG PACKAGE_PATH=/usr/local/lib/python3.11/dist-packages
62+
ARG PACKAGE_PATH=/usr/local/lib/python3.12/dist-packages
6263

6364
# Install GPU-specific non-pip packages.
6465
{{ if eq .Accelerator "gpu" }}
@@ -168,7 +169,7 @@ ADD patches/kaggle_gcp.py \
168169

169170
# Figure out why this is in a different place?
170171
# Found by doing a export PYTHONVERBOSE=1 and then running python and checking for where it looked for it.
171-
ADD patches/sitecustomize.py /usr/lib/python3.11/sitecustomize.py
172+
ADD patches/sitecustomize.py /usr/lib/python3.12/sitecustomize.py
172173

173174
ARG GIT_COMMIT=unknown \
174175
BUILD_DATE=unknown

config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
BASE_IMAGE=us-docker.pkg.dev/colab-images/public/runtime
2-
BASE_IMAGE_TAG=release-colab_20250725-060057_RC00
2+
BASE_IMAGE_TAG=release-colab-external_20251024-060052_RC00
33
CUDA_MAJOR_VERSION=12
44
CUDA_MINOR_VERSION=5

kaggle_requirements.txt

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ PyArabic
77
PyUpSet
88
Pympler
99
Rtree
10-
shapely<2
10+
shapely
1111
SimpleITK
1212
# b/302136621: Fix eli5 import for learntools, newer version require scikit-learn > 1.3
1313
TPOT==0.12.1
14-
Theano
1514
Wand
1615
annoy
1716
arrow
@@ -29,8 +28,6 @@ deap
2928
dipy
3029
docker
3130
easyocr
32-
# b/302136621: Fix eli5 import for learntools
33-
eli5
3431
emoji
3532
fastcore
3633
# b/445960030: Requires a newer version of fastai than the currently used base image.
@@ -81,7 +78,7 @@ libpysal<=4.9.2
8178
lime
8279
line_profiler
8380
mamba
84-
matplotlib<3.8
81+
matplotlib
8582
mlcrate
8683
mne
8784
mpld3
@@ -107,11 +104,9 @@ preprocessing
107104
pudb
108105
pyLDAvis
109106
pycryptodome
110-
pydegensac
111107
pydicom
112108
pyemd
113109
pyexcel-ods
114-
pymc3
115110
pymongo
116111
pypdf
117112
pytesseract
@@ -123,19 +118,15 @@ qtconsole
123118
ray
124119
rgf-python
125120
s3fs
126-
# b/302136621: Fix eli5 import for learntools
127-
scikit-learn==1.2.2
121+
scikit-learn
128122
# Scikit-learn accelerated library for x86
129123
scikit-learn-intelex>=2023.0.1
130124
scikit-multilearn
131125
scikit-optimize
132126
scikit-plot
133127
scikit-surprise
134-
# Also pinning seaborn for learntools
135-
seaborn==0.12.2
136-
git+https://github.com/facebookresearch/segment-anything.git
137-
# b/329869023: shap 0.45.0 breaks learntools
138-
shap==0.44.1
128+
seaborn
129+
shap
139130
squarify
140131
tensorflow-cloud
141132
tensorflow-io

0 commit comments

Comments
 (0)