If have the code :
```{python}
from sympy import *
from IPython.display import display
init_printing(use_latex='mathjax')
x=symbols('x')
d=diff(sin(x)/cos(x), x)
print(latex(d))
#```
This prints correctly:
\frac{\sin^{2}{\left(x \right)}}{\cos^{2}{\left(x \right)}} + 1
But offcourse I need this latex rendered , not the text, in my document.
I tried init_printing(use_latex='mathjax') , but no ...