From b8585ea04e63c8668ed4a6c8f4e8afc3fb0be7fe 2014-09-21 18:15:53 From: Matthias Bussonnier Date: 2014-09-21 18:15:53 Subject: [PATCH] add whatsnew and uppercase C in load_ext Use uppercase as this is what is in cython docs. --- diff --git a/IPython/extensions/cythonmagic.py b/IPython/extensions/cythonmagic.py index d531355..f7500d4 100644 --- a/IPython/extensions/cythonmagic.py +++ b/IPython/extensions/cythonmagic.py @@ -32,7 +32,7 @@ def load_ipython_extension(ip): """Load the extension in IPython.""" print("""The Cython magic has been move to the Cython package, hence """) - print("""`%load_ext cythonmagic` is deprecated; Please use `%load_ext cython` instead.""") + print("""`%load_ext cythonmagic` is deprecated; Please use `%load_ext Cython` instead.""") if Cython is None or tuple(map(int,Cython.__version__.split('.'))) < (0,21) : print("You need Cython version >=0.21 to use the Cython magic") diff --git a/docs/source/config/extensions/index.rst b/docs/source/config/extensions/index.rst index 2f8dcc5..a940a8d 100644 --- a/docs/source/config/extensions/index.rst +++ b/docs/source/config/extensions/index.rst @@ -101,4 +101,4 @@ Extensions bundled with IPython ``%load_ext rpy2.ipython`` to load it, and see :mod:`rpy2.ipython.rmagic` for details of how to use it. * ``cythonmagic``used to be bundled, but is now part of `cython `_ - Use ``%load_ext cython`` to load it. + Use ``%load_ext Cython`` to load it. diff --git a/docs/source/config/intro.rst b/docs/source/config/intro.rst index 00efcef..2f9cd48 100644 --- a/docs/source/config/intro.rst +++ b/docs/source/config/intro.rst @@ -41,7 +41,7 @@ extend, :meth:`~IPython.config.loader.LazyConfigValue.prepend` (like extend, but at the front), add and update (which works both for dicts and sets):: - c.InteractiveShellApp.extensions.append('cython') + c.InteractiveShellApp.extensions.append('Cython') .. versionadded:: 2.0 list, dict and set methods for config values diff --git a/docs/source/whatsnew/pr/remove_cythonmagic.rst b/docs/source/whatsnew/pr/remove_cythonmagic.rst new file mode 100644 index 0000000..c02904b --- /dev/null +++ b/docs/source/whatsnew/pr/remove_cythonmagic.rst @@ -0,0 +1 @@ +* The ``%cython`` magic, is now part of the Cython module. Use `%load_ext Cython` with a version of Cython >= 0.21 to have acces to the magic now.