[英]Latex with IPython (IPython) error
While trying to use LaTeX with IPython, I used the following code: 在尝试将LaTeX与IPython结合使用时,我使用了以下代码:
from IPython.display import display, Math, Latex
display(Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx'))
from How to write LaTeX in IPython Notebook? 如何在IPython Notebook中编写LaTeX? . 。
But, I got the following error. 但是,我收到以下错误。
<IPython.core.display.Math at 0x269a030>
What does this error mean? 这个错误是什么意思? When do I get it? 我什么时候能买到? How can I get rid of it? 我该如何摆脱呢?
That is not an error. 那不是错误。 Run it with ipython notebook
and you will see your integral displayed . 使用ipython notebook
运行它,您将看到积分显示 。
It is not an error, it is the output representation. 这不是错误,而是输出表示。 Simply run the code inside the IPython notebook: 只需在IPython笔记本中运行代码:
from IPython.display import display, Math, Latex
display(Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx'))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.