I don't remember fixing abs(). As far as I know, it wasn't fixed. latex(abs(x)) still gives a result using \lvert.
We should probably just use \left \| instead of \lvert. Any reason to use the latter? Aaron Meurer On Fri, Feb 13, 2015 at 1:02 PM, Jason Moore <[email protected]> wrote: > Chaowen, > > This has been fixed, see https://github.com/sympy/sympy/issues/2822. > > If you upgrade to SymPy 0.7.6, you shouldn't get the warning anymore. > > > Jason > moorepants.info > +01 530-601-9791 > > On Fri, Feb 13, 2015 at 11:00 AM, chaowen guo <[email protected]> wrote: >> >> 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 >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/sympy. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/bb5ae430-2d7c-4b15-ae39-3fad8876988d%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAP7f1AixSCrF7hO0kypYXm0_SzTdvPS4yn4Ss_%2BAWbCwWQCZ5w%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6K-jh0%2B%3DdR8_qJb7wBta1K9%2B_q_%3DxEhd3rMbYVJ_8C7_g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
