Sharing files between SAGE and Windows

i like this post (click again to cancel)
1
i dont like this post (click again to cancel)

Hello,

I have followed the directions here: http://wiki.sagemath.org/SageAppliance in order to install SAGE in windows and share files between SAGE and windows.

After spending a couple of hours, I can import a SAGE notebook from the shared folder to the SAGE running on Oracle. However, I still cannot figure out how to take files from the SAGE running on Oracle and move them to Windows.

My guess is I should use the "save as", but then it just gives me a textbox for the name, and trying to type in some filename just got me an invalid address (and a white screen that I didn't know how to get rid of without restarting SAGE).

I try could change it to plain text, and then manually copy it over (and manually reformat it for indents), but that seems inelegant. Also, the clipboard in SAGE and windows seem to be unlinked, so I also don't know how to copy and paste between windows and SAGE.

Thanks!

asked Jun 05 '13

dtseng gravatar image dtseng
13 4

updated Jun 05 '13

i like this answer (click again to cancel)
2
i dont like this answer (click again to cancel) dtseng has selected this answer as correct

The simplest version is to use your host OS web browser and connect to http://localhost:8000. Then "save as" the worksheet to your host computer.

If you use "save as" in the virtual machine then you'll save your worksheet in a file inside the virtual machine. If you set up a shared directory (http://wiki.sagemath.org/SageAppliance#Sharing_files_between_Sage_and_Windows) then you can use "save as" in the virtual machine and save to the shared directory, making it accessible to the host.

Yet more complicated alternative: use scp to copy files from the VM to the host.

link

posted Jun 05 '13

Volker Braun gravatar image Volker Braun
2701 9 24 60

As a few naive questions, how does connected to http://localhost:8000 distinguish between the different versions of SAGE? How do you "save as" in the virtual machine (it just gives me a box to type in a name, and not the folder)? If you are using SCP, what is the Host name?

dtseng (Jun 05 '13)
1

http://localhost:8000 is whichever version of the Virtual Machine is currently runnnig (if you start multiple versions simultaneously then the only the first one can bind the port).

For ssh/scp, use localhost with port 2222

Volker Braun (Jun 06 '13)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
Login/Signup to Post

Question tools

Tags:

Stats:

Asked: Jun 05 '13

Seen: 149 times

Last updated: Jun 05 '13

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.