On Apr 12, 4:49 pm, William Stein <wst...@gmail.com> wrote:
> On Monday, April 12, 2010, Alec Mihailovs  wrote:
>
> > from shutil import copy
> > copy('/home/excetera.png', '.')
>
> Using DATA explicitly and shutil is not necessary.  Just upload the
> file foo.png as you say, then use it in the  tag directly and it
> should just work.

Yes, if a file is uploaded, then it could be used as html('<img
src=excetera.png/>')

What I wrote (with shutil, but without DATA), works directly, without
uploading, and without using html. An interesting thing is that after
that is done, and the image is copied to one of cells (but without
uploading), it still can be used in an html tag from another cell just
referring to its name - same as if it was uploaded.

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe, reply using "remove me" as the subject.

Reply via email to