On 4/26/07, David Joyner <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> I'm looking into assigning problems for a DEs class
> next fall using the SAGE notebook. I have a few questions.
> I don't use this much, so some of these questions might
> just be due to misunderstandings on my part.
>
> I've tried to attach (for example)
> SAGEHOME/examples/calculus/field_plot2d.sage
> while using the remote server at sagenb.com. This
> didn't work (which might be a good thing, security-wise),
> but the Notebook Quickstart suggests it would work.
> I would like some way for students to load a
> teacher-created *.sage file. Is that possible using
> a remote server.

No, this feature has not been implemented yet, at least not via remote
upload.  Attach in sage is currently only something you can do from the
command line locally.

> Assuming the answer to this last question is no,
> I then tried attaching the *.sage fiel using the notebook locally,
> saving the resulting worksheet, and then uploading that
> worksheet. "Uploading") this resulted in a blank page.

The uploaded worksheet is there; that you see a blank page
after upload is a bug.  However attaching a .sage from a worksheet
doesn't at all literally include the file in the worksheet -- attach
is just like attach from the command line.  Thus this won't work
for you either.

Basically the functionality you want currently doesn't exist.
I almost certainly won't have the time to add it either, since
I'm so busy with teaching.

 -- William

> The following was printed out in the terminal window,
> if it is any help (BTW, the worksheet was created on a
> suse 10.1 amd64 machine and then that worksheet
> was uploaded on a macbook).
>
> Any help would be appreciated!
>
> - David Joyner
>
> ++++++++++++++++++++++++++++++
>
> david-joyners-computer:~/sagefiles/sage-2.5.alpha0 wdj$ ./sage
> ----------------------------------------------------------------------
> | SAGE Version 2.5.alpha0, Release Date: 2007-04-23                  |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
>
> sage: notebook(open_viewer=true)
> ----------------------------------------------------------------------
> Saving notebook to
> '/Users/wdj/sagefiles/sage-2.5.alpha0/sage_notebook/nb.sobj'...
> Press control-C twice to stop notebook server.
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> Saving notebook to
> '/Users/wdj/sagefiles/sage-2.5.alpha0/sage_notebook/nb.sobj'...
> Press control-C twice to stop notebook server.
> ----------------------------------------------------------------------
> **************************************************
> *                                                *
> * Open your web browser to http://localhost:8000 *
> *                                                *
> **************************************************
> WARNING: The SAGE Notebook works best with ** Firefox/Mozilla **.
> Press Control-C *TWICE* to stop the server.
> localhost - - [26/Apr/2007 21:35:04] "GET / HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:05] "GET /__main__.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:05] "GET /__keyboard_mm__.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:05] "GET
> /jsmath/plugins/noImageFonts.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:05] "GET /jsmath/jsMath.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:06] "GET /highlight/prettify.js HTTP/1.1" 
> 200 -
> localhost - - [26/Apr/2007 21:35:06] "GET /highlight/prettify.css
> HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:06] "GET /sagelogo.png HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:06] "GET /corner.png HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:06] "GET /favicon.ico HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /_scratch_ HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /__main__.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /__keyboard_mm__.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET
> /jsmath/plugins/noImageFonts.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /jsmath/jsMath.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /highlight/prettify.js HTTP/1.1" 
> 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /highlight/prettify.css
> HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /sagelogo.png HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET /corner.png HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:10] "GET
> /jsmath/jsMath-fallback-unix.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:11] "GET /favicon.ico HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:14] "GET /__upload__.html HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:14] "GET /__keyboard_mm__.js HTTP/1.1" 200 -
> localhost - - [26/Apr/2007 21:35:14] "GET /favicon.ico HTTP/1.1" 200 -
> ----------------------------------------------------------------------
> Saving notebook to
> '/Users/wdj/sagefiles/sage-2.5.alpha0/sage_notebook/nb.sobj'...
> Press control-C twice to stop notebook server.
> ----------------------------------------------------------------------
> cd sage_notebook/tmp; tar -jxf
> /Users/wdj/sagefiles/sage-2.5.alpha0/sage_notebook/tmp.sws
> tar: field_plot/cells/0: time stamp 2007-04-26 23:13:00 is 5845 s in the 
> future
> tar: field_plot/cells/1/sage0.png: time stamp 2007-04-26 23:13:54 is
> 5899 s in the future
> tar: field_plot/cells/1: time stamp 2007-04-26 23:13:53 is 5898 s in the 
> future
> tar: field_plot/cells/2/sage0.png: time stamp 2007-04-26 23:14:35 is
> 5940 s in the future
> tar: field_plot/cells/2: time stamp 2007-04-26 23:14:35 is 5940 s in the 
> future
> tar: field_plot/cells/3/sage0.png: time stamp 2007-04-26 23:14:58 is
> 5963 s in the future
> tar: field_plot/cells/3: time stamp 2007-04-26 23:14:58 is 5963 s in the 
> future
> tar: field_plot/cells: time stamp 2007-04-26 23:14:55 is 5960 s in the future
> tar: field_plot/code/1.py: time stamp 2007-04-26 23:13:00 is 5845 s in
> the future
> tar: field_plot/code/2.py: time stamp 2007-04-26 23:13:35 is 5880 s in
> the future
> tar: field_plot/code/3.py: time stamp 2007-04-26 23:13:50 is 5895 s in
> the future
> tar: field_plot/code/4.py: time stamp 2007-04-26 23:14:18 is 5923 s in
> the future
> tar: field_plot/code/5.py: time stamp 2007-04-26 23:14:55 is 5960 s in
> the future
> tar: field_plot/code: time stamp 2007-04-26 23:14:55 is 5960 s in the future
> tar: field_plot/field_plot.sobj: time stamp 2007-04-26 23:15:48 is
> 6013 s in the future
> tar: field_plot: time stamp 2007-04-26 23:15:48 is 6013 s in the future
> field_plot
> rm -rf "sage_notebook/worksheets/field_plot"
> mv sage_notebook/tmp/field_plot sage_notebook/worksheets/
> localhost - - [26/Apr/2007 21:35:35] "POST /upload_worksheet HTTP/1.1" 302 -
> ----------------------------------------
> Exception happened during processing of request from ('127.0.0.1', 53654)
> Traceback (most recent call last):
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/SocketServer.py",
> line 222, in handle_request
>     self.process_request(request, client_address)
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/SocketServer.py",
> line 241, in process_request
>     self.finish_request(request, client_address)
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/SocketServer.py",
> line 254, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/SocketServer.py",
> line 521, in __init__
>     self.handle()
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/BaseHTTPServer.py",
> line 316, in handle
>     self.handle_one_request()
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/BaseHTTPServer.py",
> line 310, in handle_one_request
>     method()
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/site-packages/sage/server/notebook/server.py",
> line 998, in do_POST
>     self.import_worksheet_local_file(tmp)
>   File 
> "/Users/wdj/sagefiles/sage-2.5.alpha0/local/lib/python2.5/site-packages/sage/server/notebook/server.py",
> line 478, in import_worksheet_local_file
>     self.send_header("Location", '/%d'%W.name())
> TypeError: int argument required
> ----------------------------------------
> localhost - - [26/Apr/2007 21:35:35] "GET /favicon.ico HTTP/1.1" 200 -
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to