ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 15 Jun 2012 07:39:46 -0500upload data file to notebookhttp://ask.sagemath.org/question/8639/upload-data-file-to-notebook/Hello!
I have a data file on my hard drive which I can open like:
open('/path/to/file')
in case of sage's server can access this file. But if the server is on the remote machine and there is no way to share a file between my machine and the server, can I somehow upload this file via web-interface to the sage notebook server and then open it and read it?EugeneTue, 17 Jan 2012 20:56:53 -0600http://ask.sagemath.org/question/8639/Cannot upload zip file in local installationhttp://ask.sagemath.org/question/9078/cannot-upload-zip-file-in-local-installation/I'm trying to upload a zip file (containing only .sws files) to my local installation on Sage 5.0.1 on an iMac. However, Sage just won't accept it. Online sage servers will upload this same zip file with no problems. What am I doing wrong?
calc314Fri, 15 Jun 2012 07:39:46 -0500http://ask.sagemath.org/question/9078/Large worksheet upload to notebookhttp://ask.sagemath.org/question/8530/large-worksheet-upload-to-notebook/ It has been a problem to upload the large single worksheet files or archives to Sage Notebook server for quite a long time (see for example [this](http://groups.google.com/group/sage-support/browse_thread/thread/727843a963c78fb3) and [this](http://groups.google.com/group/sage-support/browse_thread/thread/cd665950c28dc5c5/) mailing list threads) and seems to have no comprehensive answer or recipe.
I found a simple solution to the problem of uploading large files to the local Sage Notebook server (running on my own PC). Here it is:
Let's assume we downloaded a large (about 30 MB) single *"MyWorksheet.sws"* file from some remote Sage Notebook server in order to add it to our local one, and put it into the *"Downloads"* folder.
First of all we need to unpack this file. Since the ***.sws*** files are actually the ***.tar.bz2*** archives, we can simply do the following
tar -xvf MyWorksheet.sws
which gives us a directory named **"sage_worksheet"** which contains all the worksheet stuff.
Next we should go to the directory
/home/system_user_name/.sage/sage_notebook.sagenb/home/sage_user_name
where the "system_user_name" is a name we use to login (assuming that we start our local Sage Notebook server from this account also) and "sage_user_name" is a name of the user account we want to add the *"MyWorksheet"* worksheet to.
There should be some catalogs named consequently **"1"**, **"2"**, **"3"**, ... in this directory. We need to find the biggest number (let's assume it will be "41") and create an empty catalog with the name larger by one ("42" in our example).
mkdir 42
Next we have to move all the contents from the unpacked *"sage_worksheet"* directory to this newly created one:
mv -t 42/ ~/Downloads/sage_worksheet/*
Let's check what we have now:
ls 42
If everything is done correctly, we shoul see something like this:
cells worksheet.html worksheet.txt worksheet_conf.pickle
Now we can (re)start our local Sage Notebook server, log in and see that the ***MyWorksheet*** is there in the worksheets list.
v_2eMon, 05 Dec 2011 07:30:46 -0600http://ask.sagemath.org/question/8530/Notebook: Browse by URL?http://ask.sagemath.org/question/8467/notebook-browse-by-url/Is there a reason that I can't "browse" by URL when I'm uploading a notebook? Apparently the upload via URL requires a specific location, whereas the upload by file allows you to browse. Is this because the underlying functionality is not available, or is it just a matter of it being enabled in the notebook interface?Mike WittSun, 20 Nov 2011 05:14:55 -0600http://ask.sagemath.org/question/8467/