Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do you load a file to the SageMath 9.1 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.

click to hide/show revision 2
retagged

How do you load a file to the SageMath 9.1 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.