File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 23
23
24
24
from sphinx import highlighting
25
25
26
+ import warnings
27
+ warnings .warn ("""
28
+ The Sphinx extension ipython_console_highlighting has moved from
29
+ matplotlib to IPython, and its use in matplotlib is deprecated.
30
+ Change your import from 'matplotlib.sphinxext.ipython_directive' to
31
+ 'IPython.sphinxext.ipython_directive.""" ,
32
+ matplotlib .cbook .mplDeprecation )
33
+
26
34
#-----------------------------------------------------------------------------
27
35
# Global constants
28
36
line_re = re .compile ('.*?\n ' )
Original file line number Diff line number Diff line change 80
80
81
81
matplotlib .use ('Agg' )
82
82
83
+ import warnings
84
+ warnings .warn ("""
85
+ The Sphinx ipython_directive has moved from matplotlib to IPython, and
86
+ its use within matplotlib is deprecated. Change your import from
87
+ 'matplotlib.sphinxext.ipython_directive' to
88
+ 'IPython.sphinxext.ipython_directive.""" ,
89
+ matplotlib .cbook .mplDeprecation )
90
+
83
91
# Our own
84
92
try :
85
93
from IPython import Config , InteractiveShell
You can’t perform that action at this time.
0 commit comments