简体   繁体   中英

Latex with IPython (IPython) error

While trying to use LaTeX with IPython, I used the following code:

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? .

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 .

It is not an error, it is the output representation. Simply run the code inside the IPython notebook:

from IPython.display import display, Math, Latex
display(Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx'))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM