I run the following code in IPython notebook
import sympy
sympy.init_printing()
x=sympy.symbols("x",real=True)
sympy.Abs(x)
and always get the following warning:
/usr/lib/python3/dist-packages/IPython/core/formatters.py:239: FormatterWarning: Exception in image/png formatter:
\left\lvert{x}\right\rvert
^
Expected a delimiter (at char 5), (line:1, col:6)
FormatterWarning,
Although the answer is correct, my program has a lot of formula with sympy.Abs. So it prints a lot of warning messages like the above one. It is pretty annoying.
How to fix the problem?
Chaowen GUO