I/O to Local Files

18 views
Skip to first unread message

Brad Burkman

unread,
Jul 14, 2014, 11:31:49 AM7/14/14
to sage...@googlegroups.com
I'm helping organize the Modeling and Analysis Challenge in the Student Program at XSEDE'14, tomorrow.  The students have to use Sage notebooks, and have set up accounts on the Sage server at Clemson. 

The students will want to input/output data from/to local files (on their laptops).  How do they read/write between local files and their workbooks on the remote server?

Examples would be really useful. 

Thanks,

Brad

David Joyner

unread,
Jul 14, 2014, 4:34:30 PM7/14/14
to SAGE edu
On Mon, Jul 14, 2014 at 11:31 AM, Brad Burkman <bbur...@lsmsa.edu> wrote:
> I'm helping organize the Modeling and Analysis Challenge in the Student
> Program at XSEDE'14, tomorrow. The students have to use Sage notebooks, and
> have set up accounts on the Sage server at Clemson.
>
> The students will want to input/output data from/to local files (on their
> laptops). How do they read/write between local files and their workbooks on
> the remote server?
>

I'm not a notebook user but I thought you could upload files to the
remote server and then read/write the files there. Is that a possibility?


> Examples would be really useful.
>
> Thanks,
>
> Brad
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-edu+u...@googlegroups.com.
> To post to this group, send email to sage...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-edu.
> For more options, visit https://groups.google.com/d/optout.

Brad Burkman

unread,
Jul 14, 2014, 4:44:04 PM7/14/14
to sage...@googlegroups.com
If it is possible to upload files to the remote server, I don't know how.  That information would be helpful. 

Brad


You received this message because you are subscribed to a topic in the Google Groups "sage-edu" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-edu/IoIZh1WpoGM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-edu+u...@googlegroups.com.

To post to this group, send email to sage...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-edu.
For more options, visit https://groups.google.com/d/optout.



--
J. Bradford Burkman
    Lecturer in Mathematics
    Student Research Advisor
    XSEDE Campus Champion
Louisiana School for Math, Science, and the Arts
bbur...@lsmsa.edu

David Joyner

unread,
Jul 14, 2014, 4:45:54 PM7/14/14
to SAGE edu
On Mon, Jul 14, 2014 at 4:44 PM, Brad Burkman <bbur...@lsmsa.edu> wrote:
> If it is possible to upload files to the remote server, I don't know how.
> That information would be helpful.
>

Can't you click the upload link and have that file available?

Brad Burkman

unread,
Jul 14, 2014, 4:50:50 PM7/14/14
to sage...@googlegroups.com
Data files are not a supported format for Upload. The only supported file formats are flavors of worksheets. 

David Joyner

unread,
Jul 14, 2014, 4:59:31 PM7/14/14
to SAGE edu
On Mon, Jul 14, 2014 at 4:50 PM, Brad Burkman <bbur...@lsmsa.edu> wrote:
> Data files are not a supported format for Upload. The only supported file
> formats are flavors of worksheets.
>

Okay.

What about with https://cloud.sagemath.com/?

Brad Burkman

unread,
Jul 14, 2014, 5:01:13 PM7/14/14
to sage...@googlegroups.com
The training today was on the Clemson server, and I don't want to change things unnecessarily.  There has to be a way to get data in and out. 

Brad

Rob Beezer

unread,
Jul 14, 2014, 5:49:09 PM7/14/14
to sage...@googlegroups.com
Open a *worksheet* and then use the "data" combo-box to upload a data file that
may be used/accessed within the worksheet. You can provide a URL, so maybe that
will be the device to get the file from a remote server.

Note the instructions about using

DATA + '<your-filename>'

as the filename to use within Sage/Python functions.

Rob
> <mailto:sage-edu%2Bunsu...@googlegroups.com>.
> >> > To post to this group, send email to sage...@googlegroups.com
> <mailto:sage...@googlegroups.com>.
> >> > Visit this group at http://groups.google.com/group/sage-edu.
> >> > For more options, visit https://groups.google.com/d/optout.
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "sage-edu" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/sage-edu/IoIZh1WpoGM/unsubscribe.
> >> To unsubscribe from this group and all its topics, send an email to
> >> sage-edu+u...@googlegroups.com
> <mailto:sage-edu%2Bunsu...@googlegroups.com>.
> >>
> >> To post to this group, send email to sage...@googlegroups.com
> <mailto:sage...@googlegroups.com>.
> >> Visit this group at http://groups.google.com/group/sage-edu.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> >
> > --
> > J. Bradford Burkman
> > Lecturer in Mathematics
> > Student Research Advisor
> > XSEDE Campus Champion
> > Louisiana School for Math, Science, and the Arts
> > bbur...@lsmsa.edu <mailto:bbur...@lsmsa.edu>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sage-edu" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to sage-edu+u...@googlegroups.com
> <mailto:sage-edu%2Bunsu...@googlegroups.com>.
> > To post to this group, send email to sage...@googlegroups.com
> <mailto:sage...@googlegroups.com>.
> > Visit this group at http://groups.google.com/group/sage-edu.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-edu" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-edu/IoIZh1WpoGM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-edu+u...@googlegroups.com
> <mailto:sage-edu%2Bunsu...@googlegroups.com>.
> To post to this group, send email to sage...@googlegroups.com
> <mailto:sage...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/sage-edu.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> J. Bradford Burkman
> Lecturer in Mathematics
> Student Research Advisor
> XSEDE Campus Champion
> Louisiana School for Math, Science, and the Arts
> bbur...@lsmsa.edu <mailto:bbur...@lsmsa.edu>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to sage-edu+u...@googlegroups.com
> <mailto:sage-edu+u...@googlegroups.com>.
> To post to this group, send email to sage...@googlegroups.com
> <mailto:sage...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages