Skip to content

Commit 2c51eca

Browse files
authored
Ensure compatible version of numpy in isolated_notebook_test.py (#6038)
Keep numpy version in the isolated Python environment at 1.23 as numpy-1.24 is incompatible with cirq and numba. Fixes stuck notebook tests which import numba. Related to #5967
1 parent 402260c commit 2c51eca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev_tools/notebooks/isolated_notebook_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
# https://github.com/networkx/networkx/issues/4718 pinned networkx 2.5.1 to 4.4.2
105105
# however, jupyter brings in 5.0.6
106106
'decorator<5',
107+
# TODO(#5967): allow numpy-1.24 when it is supported in Cirq and numba
108+
'numpy>=1.16,<1.24',
107109
]
108110

109111

0 commit comments

Comments
 (0)