Ask Your Question
0

File IO in Notebook

asked 12 years ago

EthanIowa gravatar image

Hi,

I'm using the Sage Notebook in Windows, with Sage running on a virtual machine. I want read/write files on my Windows machine within Sage. Is this possible?

Thanks.

Preview: (hide)

Comments

To read and write files on your Windows machine within Sage running on a virtual machine, set up shared folders between the virtual machine and Windows. Configure shared folders in the virtual machine settings, start the virtual machine, and access the shared folder from Sage. Once connected, use standard Python file operations to read and write files. Be mindful of security considerations and refer to your virtualization software documentation for specific setup instructions.

stevediaz gravatar imagestevediaz ( 1 year ago )

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

Jason Grout gravatar image

I think the easiest way to do it is to set up a "shared folder" in the virtual machine. That is a folder that both the virtual machine and Windows can see.

Preview: (hide)
link

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: 12 years ago

Seen: 428 times

Last updated: Nov 28 '12