diff options
author | Martín Gaitán <gaitan@gmail.com> | 2014-04-06 15:34:53 -0300 |
---|---|---|
committer | Martín Gaitán <gaitan@gmail.com> | 2014-04-29 17:56:26 -0300 |
commit | 99a593e0e80cd3ea7dee3f6aa02289b6019cfde7 (patch) | |
tree | 982839ac5606c990e1f8a1b0725a893f4ded2469 /Cython/Build/IpythonMagic.py | |
parent | 52610840021cb4a095faf78ca29783454c1a996e (diff) | |
download | cython-99a593e0e80cd3ea7dee3f6aa02289b6019cfde7.tar.gz |
Moved ipython entry point to cython package
`load_entry_point()` is on Cython/__init__.py,
so:: %load_ext Cython is all you need to load the magic.
Diffstat (limited to 'Cython/Build/IpythonMagic.py')
-rw-r--r-- | Cython/Build/IpythonMagic.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Cython/Build/IpythonMagic.py b/Cython/Build/IpythonMagic.py index 2773afdc4..708ec8df7 100644 --- a/Cython/Build/IpythonMagic.py +++ b/Cython/Build/IpythonMagic.py @@ -297,7 +297,7 @@ class CythonMagics(Magics): def _clear_distutils_mkpath_cache(self): """clear distutils mkpath cache - + prevents distutils from skipping re-creation of dirs that have been removed """ try: @@ -306,7 +306,7 @@ class CythonMagics(Magics): pass else: _path_created.clear() - + def _get_build_extension(self): self._clear_distutils_mkpath_cache() dist = Distribution() @@ -339,7 +339,3 @@ __doc__ = __doc__.format( CYTHON_INLINE_DOC = dedent(CythonMagics.cython_inline.__doc__), CYTHON_PYXIMPORT_DOC = dedent(CythonMagics.cython_pyximport.__doc__), ) - -def load_ipython_extension(ip): - """Load the extension in IPython.""" - ip.register_magics(CythonMagics) |