Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Display a PNG image file in a notebook

I've uploaded an image file (DATA+'foo.png') into a notebook. How can I display it in the notebook? I tried using the statement

show(DATA+'foo.png')

but it just returns the file's path:

'/home/sage/.sage/sage_notebook.sagenb/home/admin/18/data/foo.png'

click to hide/show revision 2
it's in a worksheet, not the notebook

Display a PNG image file in a notebookworksheet

I've uploaded an image file (DATA+'foo.png') into a notebook. notebook worksheet. How can I display it in the notebook? worksheet? I I've tried using the statement

show(DATA+'foo.png')

but it just returns the file's path:

'/home/sage/.sage/sage_notebook.sagenb/home/admin/18/data/foo.png'