diff --git a/IPython/extensions/sympy_printing.py b/IPython/extensions/sympy_printing.py index 5fb5514..3633469 100644 --- a/IPython/extensions/sympy_printing.py +++ b/IPython/extensions/sympy_printing.py @@ -16,6 +16,7 @@ Authors: from IPython.lib.latextools import latex_to_png from IPython.testing import decorators as dec +# use @dec.skipif_not_sympy to skip tests requiring sympy try: from sympy import pretty, latex @@ -27,7 +28,6 @@ except ImportError: # Definitions of magic functions for use with IPython #----------------------------------------------------------------------------- -@dec.skipif_not_sympy def print_basic_unicode(o, p, cycle): """A function to pretty print sympy Basic objects.""" if cycle: @@ -38,7 +38,6 @@ def print_basic_unicode(o, p, cycle): p.text(out) -@dec.skipif_not_sympy def print_png(o): """A funciton to display sympy expression using LaTex -> PNG.""" s = latex(o, mode='inline') @@ -51,7 +50,6 @@ def print_png(o): _loaded = False -@dec.skipif_not_sympy def load_ipython_extension(ip): """Load the extension in IPython.""" global _loaded