From 33933f9927ff3547d5c2b376fb7bc2a51194f929 2011-01-24 05:29:42 From: Brian Granger Date: 2011-01-24 05:29:42 Subject: [PATCH] Using inline mode for rendering sympy Expr to latex. --- diff --git a/IPython/extensions/sympy_printing.py b/IPython/extensions/sympy_printing.py index 7d8051a..c7d6cd7 100644 --- a/IPython/extensions/sympy_printing.py +++ b/IPython/extensions/sympy_printing.py @@ -34,7 +34,7 @@ def print_basic_unicode(o, p, cycle): def print_png(o): """A funciton to display sympy expression using LaTex -> PNG.""" - s = latex(o) + s = latex(o, mode='inline') png = latex_to_png(s, encode=True) return png