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?
我正在使用深色背景进行ipython。我希望用LaTeX打印漂亮的表情。问题是当前的LaTeX字体是黑色的。如何在ipython终端中更改LaTeX字体颜色?
1 个解决方案
#1
4
You can set the forecolor
and backcolor
options in sympy.init_printing
. For example, to print the equations in blue, use
您可以在sympy.init_printing中设置forecolor和backcolor选项。例如,要以蓝色打印方程式,请使用
In [1]: init_printing(forecolor="Blue")
#1
4
You can set the forecolor
and backcolor
options in sympy.init_printing
. For example, to print the equations in blue, use
您可以在sympy.init_printing中设置forecolor和backcolor选项。例如,要以蓝色打印方程式,请使用
In [1]: init_printing(forecolor="Blue")