sympyprinting.py
32 lines
| 1.0 KiB
| text/x-python
|
PythonLexer
Pauli Virtanen
|
r4888 | """ | ||
Matthias Bussonnier
|
r21453 | **DEPRECATED** | ||
Pauli Virtanen
|
r4888 | A print function that pretty prints sympy Basic objects. | ||
:moduleauthor: Brian Granger | ||||
Usage | ||||
===== | ||||
Once the extension is loaded, Sympy Basic objects are automatically | ||||
pretty-printed. | ||||
Brian Granger
|
r3278 | |||
Sean Vig
|
r8574 | As of SymPy 0.7.2, maintenance of this extension has moved to SymPy under | ||
sympy.interactive.ipythonprinting, any modifications to account for changes to | ||||
SymPy should be submitted to SymPy rather than changed here. This module is | ||||
Min ho Kim
|
r25146 | maintained here for backwards compatibility with old SymPy versions. | ||
Sean Vig
|
r8574 | |||
Brian Granger
|
r3278 | """ | ||
#----------------------------------------------------------------------------- | ||||
Takafumi Arakaki
|
r7311 | # Copyright (C) 2008 The IPython Development Team | ||
Brian Granger
|
r3278 | #----------------------------------------------------------------------------- | ||
#----------------------------------------------------------------------------- | ||||
# Imports | ||||
#----------------------------------------------------------------------------- | ||||
Sean Vig
|
r8574 | import warnings | ||
Brian Granger
|
r3278 | def load_ipython_extension(ip): | ||
Matthias Bussonnier
|
r21495 | warnings.warn("The sympyprinting extension has moved to `sympy`, " | ||
Matthias Bussonnier
|
r21483 | "use `from sympy import init_printing; init_printing()`") | ||