簡體   English   中英

帶有IPython(IPython)錯誤的乳膠

[英]Latex with IPython (IPython) error

在嘗試將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'))

如何在IPython Notebook中編寫LaTeX?

但是,我收到以下錯誤。

<IPython.core.display.Math at 0x269a030>

這個錯誤是什么意思? 我什么時候能買到? 我該如何擺脫呢?

那不是錯誤。 使用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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM