cythonmagic.py 701 B

123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. """
  3. **DEPRECATED**
  4. The cython magic has been integrated into Cython itself,
  5. which is now released in version 0.21.
  6. cf github `Cython` organisation, `Cython` repo, under the
  7. file `Cython/Build/IpythonMagic.py`
  8. """
  9. #-----------------------------------------------------------------------------
  10. # Copyright (C) 2010-2011, IPython Development Team.
  11. #-----------------------------------------------------------------------------
  12. import warnings
  13. ## still load the magic in IPython 3.x, remove completely in future versions.
  14. def load_ipython_extension(ip):
  15. """Load the extension in IPython."""
  16. warnings.warn("""The Cython magic has been moved to the Cython package""")