ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 28 Nov 2020 05:57:44 +0100How do you load a file to the SageMath 9.1 Console?https://ask.sagemath.org/question/54419/how-do-you-load-a-file-to-the-sagemath-91-console/ I am trying to follow the Loading and Attaching Sage files tutorial. I am working on Windows 10. I created an `example.sage` file by simply writing a .txt file and changing the extension to .sage, and put it on my desktop, located at
`C:/Users/vika/Desktop/example.sage`.
In the SageMath 9.1 Console, I get the following issues depending on the type of slash
sage: load("C:/Users/vika/Desktop/example.sage")
OSError: did not find file 'C:/Users/vika/Desktop/example.sage' to load or attach
sage: load("C:\Users\vika\Desktop\example.sage")
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Where am I supposed to put this file in order to load it? I know that sage is installed at `C:/Users/vika/AppData/Local/SageMath 9.1` if that matters.vikahdv@gmail.comSat, 28 Nov 2020 05:57:44 +0100https://ask.sagemath.org/question/54419/File IO in Notebookhttps://ask.sagemath.org/question/9583/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.
EthanIowaWed, 28 Nov 2012 21:21:24 +0100https://ask.sagemath.org/question/9583/