1 | initial version |
Katika, you should be able to save any object in Sage, as well as a whole session. If you click "Help" on the notebook at the top, the page you get should have
Use "save obj1 obj2 ..." and "load obj1 obj2 ...". This allows for easy moving of objects from one worksheet to another, and saving of objects for later use.
toward the bottom. The syntax is wrong, though.This is now Ticket 11124.
This should work.
A = matrix([[2,3],[3,4]])
save(A,'test')
And then a link to the actual .sobj
file should be created, and you could use that. The help for the DATA variable should help as well. If you want to use your home directory, then
save(A,os.path.expanduser('~/')+'test')
might help you. Maybe that should be in the help as well...
2 | No.2 Revision |
Katika, you should be able to save any object in Sage, as well as a whole session. If you click "Help" on the notebook at the top, the page you get should have
Use "save obj1 obj2 ..." and "load obj1 obj2 ...". This allows for easy moving of objects from one worksheet to another, and saving of objects for later use.
toward the bottom. The syntax is wrong, though.This is now Ticket 11124.
This should work.
A = matrix([[2,3],[3,4]])
save(A,'test')
And then a link to the actual .sobj
file should be created, and you could use that. The help for the DATA variable should help as well. If you want to use your home directory, then
save(A,os.path.expanduser('~/')+'test')
might help you. you; it will show up in your home directory, if you use a system which supports the tilde. Maybe that should be in the help as well...