Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there a simple way to plot an image in a notebook? I.e. the output of the imshow function in matplotlib...

I have been wondering how to do something seemingly really simple, but seem to be missing something - sage allows users to do all kinds of fancy plotting in the notebook but I can't get it to display a 2d matrix as an image (matplotlib's imshow function).

I see that it is possible to call imshow and save the result to file, but I want to display the result in the notebook instead - did I miss something?

Cheers