File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ original location:
4747 - mstream -> `from matplotlib import stream as mstream `
4848 - mtable -> `from matplotlib import table as mtable `
4949
50+ * The Sphinx extensions `ipython_directive ` and
51+ `ipython_console_highlighting ` have been moved to the IPython
52+ project itself. While they remain in matplotlib for this release,
53+ they have been deprecated. Update your extensions in `conf.py ` to
54+ point to `IPython.sphinxext.ipython_directive ` instead of
55+ `matplotlib.sphinxext.ipython_directive `.
5056
5157* In :module: `~matplotlib.finance `, almost all functions have been deprecated and
5258 replaced with a pair of functions name `*_ochl ` and `*_ohlc `. The former is
Original file line number Diff line number Diff line change 2222from pygments .token import Comment , Generic
2323
2424from sphinx import highlighting
25+ import matplotlib
26+
27+ matplotlib .cbook .warn_deprecated ("1.4" , """
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.""" )
2532
2633#-----------------------------------------------------------------------------
2734# Global constants
Original file line number Diff line number Diff line change 8080
8181matplotlib .use ('Agg' )
8282
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.""" )
88+
8389# Our own
8490try :
8591 from IPython import Config , InteractiveShell
You can’t perform that action at this time.
0 commit comments