Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Control LaTeX expression color in ipython qtconsole

I'm using a dark background for ipython. I would like to have sympy expressions pretty-printed with LaTeX. Problem is the current LaTeX font is black. How can I change LaTeX font colors in the ipython terminal?

like image 582
delete000 Avatar asked Aug 15 '13 16:08

delete000


1 Answers

You can set the forecolor and backcolor options in sympy.init_printing. For example, to print the equations in blue, use

In [1]: init_printing(forecolor="Blue")
like image 153
asmeurer Avatar answered Sep 30 '22 10:09

asmeurer