Show More
@@ -16,6 +16,7 b' Authors:' | |||
|
16 | 16 | |
|
17 | 17 | from IPython.lib.latextools import latex_to_png |
|
18 | 18 | from IPython.testing import decorators as dec |
|
19 | # use @dec.skipif_not_sympy to skip tests requiring sympy | |
|
19 | 20 | |
|
20 | 21 | try: |
|
21 | 22 | from sympy import pretty, latex |
@@ -27,7 +28,6 b' except ImportError:' | |||
|
27 | 28 | # Definitions of magic functions for use with IPython |
|
28 | 29 | #----------------------------------------------------------------------------- |
|
29 | 30 | |
|
30 | @dec.skipif_not_sympy | |
|
31 | 31 | def print_basic_unicode(o, p, cycle): |
|
32 | 32 | """A function to pretty print sympy Basic objects.""" |
|
33 | 33 | if cycle: |
@@ -38,7 +38,6 b' def print_basic_unicode(o, p, cycle):' | |||
|
38 | 38 | p.text(out) |
|
39 | 39 | |
|
40 | 40 | |
|
41 | @dec.skipif_not_sympy | |
|
42 | 41 | def print_png(o): |
|
43 | 42 | """A funciton to display sympy expression using LaTex -> PNG.""" |
|
44 | 43 | s = latex(o, mode='inline') |
@@ -51,7 +50,6 b' def print_png(o):' | |||
|
51 | 50 | |
|
52 | 51 | _loaded = False |
|
53 | 52 | |
|
54 | @dec.skipif_not_sympy | |
|
55 | 53 | def load_ipython_extension(ip): |
|
56 | 54 | """Load the extension in IPython.""" |
|
57 | 55 | global _loaded |
General Comments 0
You need to be logged in to leave comments.
Login now