Dinesh
Dinesh

Reputation: 1565

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?

Upvotes: 1

Views: 1885

Answers (2)

user3125347
user3125347

Reputation:

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

Upvotes: 0

hughdbrown
hughdbrown

Reputation: 49053

That is not an error. Run it with ipython notebook and you will see your integral displayed.

Upvotes: 1

Related Questions