File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 22
22
from pygments .token import Comment , Generic
23
23
24
24
from sphinx import highlighting
25
+ import matplotlib
25
26
26
- import warnings
27
- warnings .warn ("""
27
+ matplotlib .cbook .warn_deprecated ("1.4" , """
28
28
The Sphinx extension ipython_console_highlighting has moved from
29
29
matplotlib to IPython, and its use in matplotlib is deprecated.
30
30
Change your import from 'matplotlib.sphinxext.ipython_directive' to
31
- 'IPython.sphinxext.ipython_directive.""" ,
32
- matplotlib .cbook .mplDeprecation )
31
+ 'IPython.sphinxext.ipython_directive.""" )
33
32
34
33
#-----------------------------------------------------------------------------
35
34
# Global constants
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 )
83
+ matplotlib .cbook .warn_deprecated ("1.4" , """
84
+ The Sphinx extension ipython_console_highlighting has moved from
85
+ matplotlib to IPython, and its use in matplotlib is deprecated.
86
+ Change your import from 'matplotlib.sphinxext.ipython_directive' to
87
+ 'IPython.sphinxext.ipython_directive.""" )
90
88
91
89
# Our own
92
90
try :
You can’t perform that action at this time.
0 commit comments