Change the output color of Latex in IPython (Jupyter)

I am using ipton qtconsole (today it is called the jupyter console). When printing latex (with sympathy or in any other way) the resulting output in beautiful latex in black.

Is there a way to change the color to white, because if the terminal's background is not white (for example, what happens if you run qtconsole -style monokai), the output is unreadable.

Example:

>>> from sympy import * >>> init_printing() >>> k = symbols('k') >>> Sum(k**2,(k,1,100)) 

enter image description here

So now it is not readable. Is there any way to turn it into white

+6
source share
1 answer

If you change the background to black, you may get some other visual problems, however you can change the latex output color from black to white using:

printing.init_printing (use_latex = True, ForeColor = "White")

Hope this works for you!

0
source

All Articles