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


#1

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.


#2

This is due to type piracy by Polynomials.jl: https://github.com/JuliaMath/Polynomials.jl/issues/150


#3

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


#4

That’s how we roll.