Skip to content

Commit dad692f

Browse files
committed
Merge pull request #5762 from mdboom/no-fallback-extension
Don't fallback to old ipython_console_highlighting
2 parents 9a63e51 + 1858e65 commit dad692f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@
4040
try:
4141
from IPython.sphinxext import ipython_console_highlighting
4242
except ImportError:
43-
extensions.append('matplotlib.sphinxext.ipython_console_highlighting')
43+
raise ImportError(
44+
"IPython must be installed to build the matplotlib docs")
4445
else:
45-
print("Using IPython's ipython_console_highlighting directive")
4646
extensions.append('IPython.sphinxext.ipython_console_highlighting')
4747
extensions.append('IPython.sphinxext.ipython_directive')
48+
4849
try:
4950
import numpydoc
5051
except ImportError:

0 commit comments

Comments
 (0)