File IO in Notebook
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.
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.
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.
Asked: 12 years ago
Seen: 428 times
Last updated: Nov 28 '12
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.