[IPython-User] ipython notebook - how to display image (not from pylab)

Anthony Tanbakuchi anthony@tanbakuchi....
Wed Feb 22 21:59:07 CST 2012

I have a custom module that generates a png image file from some
calculations (sadly it doesn't work well for me to use matplotlib to
display this image). It's rather slow to read the image back in to
matplotlib and display it since it is somewhat large. How can I embed
my image similar to how it is done for the pylab inline option?

Are there any special hooks in the notebook where I can easily do
this? Or is there a way I could just print the html code to display
the image file inline? Something like print '<img src="file.png"/>'
and have that displayed in the notebook as html rather than code

Thanks for the great work on the notebook server. It's a great tool.


More information about the IPython-User mailing list