Mathjax error in sympy 1.0

30 views
Skip to first unread message

Андрей Ширшов

unread,
Jun 30, 2016, 6:28:28 AM6/30/16
to sympy
Hello!

In Jupyter Notebook:

>> import sympy as sp
>> sp.init_session(quiet=True)
IPython console for SymPy 1.0 (Python 3.5.1-64-bit) (ground types: python)


>> n = sp.symbols("n")
>> k = 100
>> sp.sequence(x/(k-n), (n, 1, k))

Unstead of mathjax formula I get rectange with the following text:

\left\[\frac{x}{99}, \frac{x}{98}, \frac{x}{97}, \frac{x}{96}, \ldots\right\]

If change \left\[ -> left [ and \right\] -> \right ]

then output works fine. Please fix it.

Best regards, Andrey.


Sartaj Singh

unread,
Jun 30, 2016, 6:38:04 AM6/30/16
to sympy
Hi,

Can you open an issue for it on our issue tracker? It will be great if you can go ahead and fix this issue. We love contributions!

Ondřej Čertík

unread,
Jun 30, 2016, 5:05:39 PM6/30/16
to sympy
Hi Andrey,

On Thu, Jun 30, 2016 at 4:28 AM, Андрей Ширшов <sh.an...@gmail.com> wrote:
> Hello!
>
> In Jupyter Notebook:
>
>>> import sympy as sp
>>> sp.init_session(quiet=True)
>
> IPython console for SymPy 1.0 (Python 3.5.1-64-bit) (ground types: python)
>
>
>>> n = sp.symbols("n")
>>> k = 100
>>> sp.sequence(x/(k-n), (n, 1, k))
>
>
> Unstead of mathjax formula I get rectange with the following text:
>
> \left\[\frac{x}{99}, \frac{x}{98}, \frac{x}{97}, \frac{x}{96},
> \ldots\right\]
>
> If change \left\[ -> left [ and \right\] -> \right ]

That seems like a bug in sympy. I just tried it in latex, and there
\left[xx\right] works, but \left\[xx\right\] fails.

I am surprised that nobody noticed until you. Thanks for reporting it!

Ondrej

>
> then output works fine. Please fix it.
>
> Best regards, Andrey.
>
>
> --
> 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/ada7385d-7fc1-410b-9002-af973a073956%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages