Where does save( , '') save to?
Sorry if this is a stupid question but where to does save( , '') go to? how do I find the file location?
Sorry if this is a stupid question but where to does save( , '') go to? how do I find the file location?
It saves to your current location, or "present working directory".
You can find this location with the command "pwd".
For example, if my username is "user" and I am working in a folder called "myproject", I might get:
sage: pwd
/home/user/myproject/
This directory us usually the place you launched Sage from.
Additionally, at least for certain types of objects, such as graphic animations, you can do
sage: a.save('filename', show_path=True)
so that the full path to the saved file is shown when saving the object to a file.
Thanks, when I do pwd however it gives me u'/home/h34sun' when my folder path should be C:\Users\h34sun would you happen to know why it does this?
See related discussions:
Asked: 2018-04-06 09:35:58 -0600
Seen: 572 times
Last updated: Apr 06 '18
how does a network operate and what controls have to be in place to share files
Eliminating string after reading
Generating a unique file name for each graph
Downloading thousands of plots from a server sage notebook?
Adding some *.py files to sagemath notebook?
How to print a text file containing multiple tuples from a function
Where are stored gif files by default
Using Sage's save and load methods leads to high memory usage