SymPy Live Shell in SymPy Tutorial displays incorrectly

28 views
Skip to first unread message

GG1950

unread,
May 22, 2019, 3:34:48 PM5/22/19
to sympy
I'm a newbie working my way through the tutorial for SymPy (https://docs.sympy.org/latest/gotchas.html).  I'd like to report the following issue, but I don't know where to do so.

When I run code blocks in SymPy Live, the output doesn't display correctly, notably when exponents and parenthesized expressions are involved.  A simple example is 

>>> (x + 1)**2
(x+1)2
 
The above, which was cut and pasted from the SymPy Live half of the browser (Google Chrome) window, appears correctly.  But in the SymPy Live half of the browser 
window, the exponent 2 appears as if it belongs to the 1 rather than to the parenthesized quantity.  What I see is similar to what the LaTeX code

$(x + 1^2)$

(x+1)2
should produce when rendered.  It appears that this is some sort of spacing display issue, not a problem with SymPy itself.

GG1950

unread,
May 22, 2019, 3:43:08 PM5/22/19
to sympy
My post didn't appear as I intended.  I'll try to make the issue clearer:  Executing (x + 1)**2 at the SymPy Live prompt results in output that looks as if LaTeX code 
$(x + 1^2)$ were rendered rather than $(x + 1)^2$ .  Yet SymPy is in fact outputting the latter.

Oscar

unread,
May 22, 2019, 4:42:28 PM5/22/19
to sympy
Hi,

Thanks for reporting this.

When I do it the output looks like:

>>> (x+1)**2
      2
(x + 1)

which looks okay to me. Maybe there is a font problem. What browser are you using?

--
Oscar

Aaron Meurer

unread,
May 22, 2019, 4:53:57 PM5/22/19
to sympy
Are there any messages printed to the web browser console for the
page. If you right click the page and click "inspect" you should be
able to get to the console (you may need to then reload the page to
see any messages).

Aaron Meurer
> --
> 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 sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/05cb4503-094b-4f32-a360-6b19904274f1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages