Ask Your Question
1

Sharing files between SAGE and Windows

asked 2013-06-05 05:40:30 +0100

dtseng gravatar image

updated 2013-06-05 05:44:16 +0100

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 merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-06-05 11:32:57 +0100

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/SageApplianc...) 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 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 gravatar imagedtseng ( 2013-06-05 15:10:02 +0100 )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 gravatar imageVolker Braun ( 2013-06-06 14:17:35 +0100 )edit

this is so cool :)

lalthomas gravatar imagelalthomas ( 2017-04-08 13:14:11 +0100 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-06-05 05:40:30 +0100

Seen: 2,709 times

Last updated: Jun 05 '13