Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7195c2a

Browse files
tacaswellQuLogic
authored andcommitted
Merge pull request #5762 from mdboom/no-fallback-extension
Don't fallback to old ipython_console_highlighting
1 parent fd2a447 commit 7195c2a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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)