1

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?

Community
  • 1
  • 1
Dinesh
  • 1,555
  • 1
  • 16
  • 18

2 Answers2

1

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

hughdbrown
  • 47,733
  • 20
  • 85
  • 108
0

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