William Stein wrote:
> On Mon, Apr 20, 2009 at 9:50 AM, Nick Alexander <ncalexan...@gmail.com> wrote:
>>> If there's not currently an easy way to do this,
> 
> There isn't one.
> 
>>> 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.
> 
> Yes, that does seem like a good idea.  Try it.


Yep, I've been trying the last few minutes.  Part of what messes things 
up is that the output of a cell does not include anything but the last 
command, so a cell like:

show(graphic)
print "hi"

will not print out the <img> tag returned by show.

There was discussion about this a while ago, IIRC.  Does anyone know if 
anything was done about it? (it's obviously not fixed...)

You can see the problem in a cell that looks like this:

s="hi"
s
s

It will only print out "hi" once (i.e., only display the result of the 
last command)

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to