Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

At the end, put either the following, which will be supported in the future:

plt.savefig('test2.png')
html("<img src='cell://test2.png' />")

or put the following, which uses internal things that might change in the future:

plt.savefig('test2.png')
sys._sage_.display_message({'text/plain': 'an image', 'text/image-filename': 'test2.png'})