8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0bb747 commit 5b744a9Copy full SHA for 5b744a9
doc/conf.py
@@ -30,10 +30,17 @@
30
'sphinx.ext.doctest', 'sphinx.ext.autosummary',
31
'matplotlib.sphinxext.plot_directive', 'sphinx.ext.inheritance_diagram',
32
'sphinxext.gen_gallery', 'sphinxext.gen_rst',
33
- 'matplotlib.sphinxext.ipython_console_highlighting',
34
'sphinxext.github',
35
'numpydoc']
36
+# Use IPython's console highlighting by default
37
+try:
38
+ from IPython.sphinxext import ipython_console_highlighting
39
+except ImportError:
40
+ extensions.append('matplotlib.sphinxext.ipython_console_highlighting')
41
+else:
42
+ print("Using IPython's ipython_console_highlighting directive")
43
+ extensions.append('IPython.sphinxext.ipython_console_highlighting')
44
45
try:
46
import numpydoc
0 commit comments