Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 45ee98c + 5b744a9 commit e4fc86fCopy full SHA for e4fc86f
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