SymPy/LaTeXStrings/IJulia: Display of Syms in LaTeX expression in Jupyter

Not sure where to post this problem. I encountered strange behaviour. Importing a third package can lead to the “loss” of LaTeX print of the SymPy.Sym in Jupyter. Example:

using SymPy
@syms x y
x*y

nicely prints xy in LaTeX. Then, e.g.

import Combinatorics.levicivita
x*y

doesn’t print it in LaTeX anymore. However, arrays of Sym are still printed in LaTeX.

[x*y]

37

(Julia 0.7.0, Anaconda Jupyter, Unix)

I don’t really get why and where to start to tackle this problem.

This is due to type piracy by Polynomials.jl: type piracy of show · Issue #150 · JuliaMath/Polynomials.jl · GitHub

5 Likes

Wow, this took 12h to be fixed and released. I’m very impressed.

8 Likes

That’s how we roll.

5 Likes