📜  Ipython.display latex in the IDE like spyder - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:43.547000             🧑  作者: Mango

代码示例1
from IPython.display import display, Math, Markdown, Latex, display_markdowndisplay(Markdown('*some markdown* $\phi$'))# If you particularly want to display maths, this is more direct:display(Latex('\phi'))display(Markdown(r'$b = \frac{\epsilon}{2}$'))display(Math(r'$F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx$'))display(Math(r'$b = \frac{\epsilon}{2}$'))display(Math(r'$e^x = \sum_{i=0}^\infty \frac{1}{i!}x^i$'))display(Math(r'$\sum_{n=0}^\infty\frac{u^n}{n!}\Delta^na_i = e^{-u}\sum_{j=0}^\infty\frac{u^j}{j!}a_{i+j} $'))