File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424from sphinx import highlighting
2525
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+
2634#-----------------------------------------------------------------------------
2735# Global constants
2836line_re = re .compile ('.*?\n ' )
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 )
90+
8391# Our own
8492try :
8593 from IPython import Config , InteractiveShell
You can’t perform that action at this time.
0 commit comments