Skip to content

Commit 4f923e3

Browse files
authored
Pin matplolib as upgrade of seaborn has conflict (#1316)
http://b/308525631
1 parent 71c35fe commit 4f923e3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile.tmpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ RUN export PATH=/usr/local/cuda/bin:$PATH && \
178178
/tmp/clean-layer.sh
179179
{{ end }}
180180

181-
# Make sure to install at least the version 0.13.0 of seaborn
182-
# which has a fix for heatmap (b/308525631)
181+
# (b/308525631) Pin Matplotlib until seaborn can be upgraded
182+
# to >0.13.0 (now it's stuck by a package conflict with ydata-profiling 4.5.1).
183183
RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
184-
pip install \
185-
seaborn>=0.13.0 \
184+
pip install --upgrade \
185+
"matplotlib<3.8.0" \
186+
seaborn \
186187
python-dateutil dask igraph \
187188
pyyaml joblib husl geopy mne pyshp \
188189
pandas \

tests/test_seaborn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class TestSeaborn(unittest.TestCase):
88
# Fails if seaborn gets downgraded by other package installations.
99
def test_version(self):
10-
self.assertGreaterEqual(StrictVersion(sns.__version__), StrictVersion("0.9.0"))
10+
self.assertGreaterEqual(StrictVersion(sns.__version__), StrictVersion("0.12.0"))
1111

1212

1313
def test_option(self):

0 commit comments

Comments
 (0)