Ask Your Question
1

Sharing files between SAGE and Windows

asked 2013-06-04 22:40:30 -0500

dtseng gravatar image

updated 2013-06-04 22:44:16 -0500

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!

edit retag flag offensive close delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-06-05 04:32:57 -0500

Volker Braun gravatar image

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.

edit flag offensive delete publish link more

Comments

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 ( 2013-06-05 08:10:02 -0500 )edit
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 ( 2013-06-06 07:17:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2013-06-04 22:40:30 -0500

Seen: 313 times

Last updated: Jun 05 '13