Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为 ipython 使用深色背景。我想用 LaTeX 打印出漂亮的 sympy 表达式。问题是当前的 LaTeX 字体是黑色的。如何在 ipython 终端中更改 LaTeX 字体颜色?
您可以在 中设置forecolor和backcolor选项sympy.init_printing。例如,要以蓝色打印方程式,请使用
forecolor
backcolor
sympy.init_printing
In [1]: init_printing(forecolor="Blue")