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

**URL:** <https://discourse.julialang.org/t/sympy-latexstrings-ijulia-display-of-syms-in-latex-expression-in-jupyter/14902>\
**Category:** Internals & Design\
**Created:** [September 13, 2018, 9:44am UTC](https://discourse.julialang.org/t/sympy-latexstrings-ijulia-display-of-syms-in-latex-expression-in-jupyter/14902 "2018-09-13T09:44:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgerick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fgerick/32/13228_2.png) [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Post date:** [September 13, 2018, 9:44am UTC](https://discourse.julialang.org/t/sympy-latexstrings-ijulia-display-of-syms-in-latex-expression-in-jupyter/14902/1 "2018-09-13T09:44:27Z")

</div>

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:

```plaintext
using SymPy
@syms x y
x*y

```

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

```julia
import Combinatorics.levicivita
x*y

```

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

```plaintext
[x*y]

```

![37](https://global.discourse-cdn.com/julialang/original/3X/7/b/7baddbe5abb17782df60a5a2fd0a9fb1be250926.png)

(Julia 0.7.0, Anaconda Jupyter, Unix)

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

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 13, 2018, 1:02pm UTC](https://discourse.julialang.org/t/sympy-latexstrings-ijulia-display-of-syms-in-latex-expression-in-jupyter/14902/2 "2018-09-13T13:02:43Z")

</div>

This is due to type piracy by Polynomials.jl: [type piracy of show · Issue #150 · JuliaMath/Polynomials.jl · GitHub](https://github.com/JuliaMath/Polynomials.jl/issues/150)

---

<div class="post-metadata">

**Author:** ![fgerick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fgerick/32/13228_2.png) [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Post date:** [September 14, 2018, 7:33am UTC](https://discourse.julialang.org/t/sympy-latexstrings-ijulia-display-of-syms-in-latex-expression-in-jupyter/14902/3 "2018-09-14T07:33:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [September 14, 2018, 7:43pm UTC](https://discourse.julialang.org/t/sympy-latexstrings-ijulia-display-of-syms-in-latex-expression-in-jupyter/14902/4 "2018-09-14T19:43:44Z")

</div>

That’s how we roll.
