Do we have any easy way to get a picture to display in a specific place in the output, other than manually writing an html <img>? In other words, I want this:
show(graphs.PetersenGraph()) print "hi" to print hi *after* the graphic, not before. In other words, I want the output in the notebook to be similar to: graphs.PetersenGraph().plot().save('test.png') html("<img src='cell://test.png'/>") print "hi" If there's not currently an easy way to do this, I think this could easily be accomplished by having the show command return the "<img src='cell://filename'/>" tag that we would normally do by hand, instead of just generating an image, returning None, and letting the notebook automatically pick up the image at the end of the output. Of course, show would only do this if we were currently inside the notebook. This would make it extremely easy to create tables of images and associated data, for example. Thanks, Jason -- Jason Grout --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---