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 2222from pygments .token import Comment , Generic
2323
2424from sphinx import highlighting
25+ import matplotlib
2526
26- import warnings
27- warnings .warn ("""
27+ matplotlib .cbook .warn_deprecated ("1.4" , """
2828The Sphinx extension ipython_console_highlighting has moved from
2929matplotlib to IPython, and its use in matplotlib is deprecated.
3030Change your import from 'matplotlib.sphinxext.ipython_directive' to
31- 'IPython.sphinxext.ipython_directive.""" ,
32- matplotlib .cbook .mplDeprecation )
31+ 'IPython.sphinxext.ipython_directive.""" )
3332
3433#-----------------------------------------------------------------------------
3534# Global constants
Original file line number Diff line number Diff line change 8080
8181matplotlib .use ('Agg' )
8282
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.""" )
9088
9189# Our own
9290try :
You can’t perform that action at this time.
0 commit comments