>
> BTW : any hope to be able to invoke sage with a worksheet as an argument ? 
> I'd love to save a worksheet to some file and be able to edit it by just 
> saying "sage somefile.someext" (hint : think git...). The current notebook 
> does not allow for that, alas : you have to explicitely import your 
> worksheet (seems to be a compressed archive of a directory tree), and to 
> explicitely export it after saving it.
>
>>
>>
I think you can use something along the lines of 

sage -n option=worksheet.txt/rst/html/...

but I forget the exact syntax.

"sage --advanced" says

  -n, -notebook [...] -- start the Sage notebook (options are the same
                         as for the notebook command in Sage)

so it must be fairly doable.  Oh yeah, here we go:

     * "upload" -- string (default: None) Full path to a local file
        (sws, txt, zip) to be uploaded and turned into a worksheet(s).
        This is equivalent to manually uploading a file via
        "http://localhost:8080/upload"; or to fetching
        "http://localhost:8080/upload_worksheet?url=file:///..."; in a
        script except that (hopefully) you will already be logged in.

so 

sage -n upload='full/path/to/file/"

*should* work.     I remember using this while testing some of the stuff in 
the Mac app a few years back so hopefully you'll be in luck.


- kcrisman

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to