Skip to content

Commit d6f04b1

Browse files
authored
Remove hvplot (#1429)
looks like hvplot isnt needed anymore with newest polars release. let remove it from docker image
1 parent 556593c commit d6f04b1

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

Dockerfile.tmpl

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ RUN apt-get install -y git-lfs && \
274274
pip install xvfbwrapper && \
275275
/tmp/clean-layer.sh
276276

277-
RUN rm -rf /opt/conda/lib/python3.10/site-packages/Shapely-1.8.5.post1.dist-info/
278-
279277
RUN pip install mpld3 \
280278
gpxpy \
281279
arrow \
@@ -471,9 +469,8 @@ RUN pip install wandb \
471469
albumentations \
472470
Rtree \
473471
accelerate && \
474-
apt-get -y install libspatialindex-dev
475-
476-
RUN rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
472+
apt-get -y install libspatialindex-dev && \
473+
rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
477474
pip install "numpy==1.26.4" && \
478475
pip install pytorch-ignite \
479476
qgrid \
@@ -484,7 +481,6 @@ RUN rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
484481
s3fs \
485482
gcsfs \
486483
kaggle-environments \
487-
hvplot \
488484
# geopandas > v0.14.4 breaks learn tools
489485
geopandas==v0.14.4 \
490486
"shapely<2" \
@@ -497,7 +493,7 @@ RUN rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
497493
flask \
498494
# pycrypto is used by competitions team.
499495
pycryptodome \
500-
nbdev \
496+
nbdev \
501497
easyocr \
502498
onnx \
503499
tables \
@@ -580,10 +576,9 @@ ADD patches/imagemagick-policy.xml /etc/ImageMagick-6/policy.xml
580576
# Add Kaggle module resolver
581577
ADD patches/kaggle_module_resolver.py /opt/conda/lib/python3.10/site-packages/tensorflow_hub/kaggle_module_resolver.py
582578
RUN sed -i '/from tensorflow_hub import uncompressed_module_resolver/a from tensorflow_hub import kaggle_module_resolver' /opt/conda/lib/python3.10/site-packages/tensorflow_hub/config.py && \
583-
sed -i '/_install_default_resolvers()/a \ \ registry.resolver.add_implementation(kaggle_module_resolver.KaggleFileResolver())' /opt/conda/lib/python3.10/site-packages/tensorflow_hub/config.py
584-
585-
# Disable preloaded jupyter modules (they add to startup, and break when they are missing)
586-
RUN sed -i /bq_stats/d /etc/ipython/ipython_kernel_config.py && \
579+
sed -i '/_install_default_resolvers()/a \ \ registry.resolver.add_implementation(kaggle_module_resolver.KaggleFileResolver())' /opt/conda/lib/python3.10/site-packages/tensorflow_hub/config.py && \
580+
# Disable preloaded jupyter modules (they add to startup, and break when they are missing)
581+
sed -i /bq_stats/d /etc/ipython/ipython_kernel_config.py && \
587582
sed -i /beatrix/d /etc/ipython/ipython_kernel_config.py && \
588583
sed -i /bigquery/d /etc/ipython/ipython_kernel_config.py && \
589584
sed -i /sql/d /etc/ipython/ipython_kernel_config.py
@@ -596,10 +591,9 @@ RUN ln -s /usr/local/cuda/lib64/libcusolver.so.11 /opt/conda/bin/../lib/libcusol
596591
{{ end }}
597592

598593
# b/270147159: conda ships with a version of libtinfo which is missing version info causing warnings, replace it with a good version.
599-
RUN rm /opt/conda/lib/libtinfo.so.6 && ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /opt/conda/lib/libtinfo.so.6
600-
601-
# b/276358430: fix Jupyter lsp freezing up the jupyter server
602-
RUN pip install "jupyter-lsp==1.5.1"
594+
RUN rm /opt/conda/lib/libtinfo.so.6 && ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /opt/conda/lib/libtinfo.so.6 && \
595+
# b/276358430: fix Jupyter lsp freezing up the jupyter server
596+
pip install "jupyter-lsp==1.5.1"
603597

604598
# Set backend for matplotlib
605599
ENV MPLBACKEND="agg" \

0 commit comments

Comments
 (0)