On Fri, Sep 27, 2013 at 9:37 AM, Christophe Bal <projet...@gmail.com> wrote:
> Hello,
> when I download a Sage sheet containing one plot, I do not have the picture
> output corresponding to the plot.

This is by design -- it means that you can easily keep your worksheets under
revision control without having to deal with potentially megabytes of
embedded images (in contrast
to how IPython notebooks are sagenb does things).  The images
themselves are stored in a database.
You can copy and paste between worksheets (even in different projects)
and you'll see the images just
appear when you paste.

If you would like to save the images you can store them in a variable, e.g.,

   g = plot(sin)
   g.save('foo.pdf')  # or g.save('foo.png')

and then download them.   You could zip or tar them up, so you only
have to download one file.
(To download, mouse over the file in the file listing and click the
download arrow that appears to the
right.)

One could also write a little script to download all the images
associated to a worksheet.  For example, if in the text of the
worksheet you see (where the image should be):

   
"file":{"show":true,"uuid":"f7fbe8c3-e85b-4a08-a572-42449a5778f5","filename":"/mnt/home/S9pXdgES/.sage/temp/compute1a/20318/tmp_ORMSSc.png"}

then you can get that image by just grabbing from this url:

   
https://cloud.sagemath.com/blobs/a.png?uuid=f7fbe8c3-e85b-4a08-a572-42449a5778f5

Here you can put anything you want where "a.png" is -- all that
matters is the uuid.   The link lasts one day if you don't save your
worksheet, or becomes permanent if you do.

That said, I plan to have many export formats for worksheets, and one
would be something that
does include all the images.    That's just not implemented yet.

> Indeed, I will type one Python code so as to build a LaTeX from my Sage
> codes. Without the picture output, I will have to recall the Sage code
> locally. No so hard to do but it will be easier to directly have the picture
> output when I download my Sage sheets.
>
> Best regards.
> Christophe.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to