Skip to content

Commit de3d9a9

Browse files
committed
Merge branch 'main' of https://github.com/Kaggle/docker-python into lsp-versions
2 parents 6426c9d + e3181fe commit de3d9a9

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

Dockerfile.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ RUN apt-get install -y libfreetype6-dev && \
270270
RUN pip install opencv-contrib-python opencv-python && \
271271
/tmp/clean-layer.sh
272272

273-
RUN pip install scipy \
273+
# Pin scipy until we update JAX b/335003097
274+
RUN pip install scipy==1.12.0 \
274275
# Scikit-learn accelerated library for x86
275276
scikit-learn-intelex>=2023.0.1 \
276277
# HDF5 support

tests/test_geoviews.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import unittest
22

33
import geoviews.feature as gf
4-
4+
import holoviews as hv
55
from cartopy import crs
66

77
class TestGeoviews(unittest.TestCase):
88
def test_viz(self):
9+
hv.extension('matplotlib')
910
(gf.ocean + gf.land + gf.ocean * gf.land * gf.coastline * gf.borders).options(
1011
'Feature', projection=crs.Geostationary(), global_extent=True
1112
).cols(3)

tpu/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ RUN pip install tensorflow_hub https://storage.googleapis.com/cloud-tpu-tpuvm-ar
6565
papermill jupyterlab python-lsp-server[all] "jupyter-lsp==1.5.1" \
6666
pandas matplotlib opencv-python-headless librosa accelerate diffusers scikit-learn transformers \
6767
seaborn timm albumentations einops pyarrow fastparquet opencv-python \
68+
"keras>3" keras-cv keras-nlp \
6869
kagglehub && \
6970
/tmp/clean-layer.sh
7071

71-
# b/318672157 Install Keras 3 for loading models.
72-
# We ignore dependencies for now since tf2.15 should work despite pip saying it won't.
73-
RUN pip install --no-dependencies "keras>3" keras-cv keras-nlp && \
74-
/tmp/clean-layer.sh
75-
7672
# Tensorflow libtpu:
7773
RUN curl --output /lib/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
7874

tpu/config.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
BASE_IMAGE=python:3.10
22
PYTHON_WHEEL_VERSION=cp310
33
PYTHON_VERSION_PATH=python3.10
4+
# gsutil ls gs://cloud-tpu-tpuvm-artifacts/tensorflow
45
# https://cloud.google.com/tpu/docs/supported-tpu-configurations#libtpu_versions
5-
TENSORFLOW_VERSION=2.15.0
6-
TF_LIBTPU_VERSION=1.9.0
6+
TENSORFLOW_VERSION=2.16.1
7+
TF_LIBTPU_VERSION=1.10.1
78
TF_LINUX_WHEEL_VERSION=manylinux_2_17_x86_64.manylinux2014_x86_64
89
JAX_VERSION=0.4.26
910
# gsutil ls gs://pytorch-xla-releases/wheels/tpuvm/* | grep libtpu | grep -v -E ".*rc[0-9].*"

0 commit comments

Comments
 (0)