Don't fallback to old ipython_console_highlighting #5762

Merged
merged 1 commit into from Dec 29, 2015
Jump to file
+3 −2
Split
View
@@ -40,11 +40,12 @@
try:
from IPython.sphinxext import ipython_console_highlighting
except ImportError:
- extensions.append('matplotlib.sphinxext.ipython_console_highlighting')
+ raise ImportError(
+ "IPython must be installed to build the matplotlib docs")
else:
- print("Using IPython's ipython_console_highlighting directive")
extensions.append('IPython.sphinxext.ipython_console_highlighting')
extensions.append('IPython.sphinxext.ipython_directive')
+
try:
import numpydoc
except ImportError: