Control LaTeX expression color in ipython qtconsole

给你一囗甜甜゛ 提交于 2019-12-04 13:47:39

问题


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?


回答1:


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")


来源:https://stackoverflow.com/questions/18257270/control-latex-expression-color-in-ipython-qtconsole

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!