sympyprinting.py 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. """
  2. **DEPRECATED**
  3. A print function that pretty prints sympy Basic objects.
  4. :moduleauthor: Brian Granger
  5. Usage
  6. =====
  7. Once the extension is loaded, Sympy Basic objects are automatically
  8. pretty-printed.
  9. As of SymPy 0.7.2, maintenance of this extension has moved to SymPy under
  10. sympy.interactive.ipythonprinting, any modifications to account for changes to
  11. SymPy should be submitted to SymPy rather than changed here. This module is
  12. maintained here for backwards compatablitiy with old SymPy versions.
  13. """
  14. #-----------------------------------------------------------------------------
  15. # Copyright (C) 2008 The IPython Development Team
  16. #-----------------------------------------------------------------------------
  17. #-----------------------------------------------------------------------------
  18. # Imports
  19. #-----------------------------------------------------------------------------
  20. import warnings
  21. def load_ipython_extension(ip):
  22. warnings.warn("The sympyprinting extension has moved to `sympy`, "
  23. "use `from sympy import init_printing; init_printing()`")