Ask Your Question

How do I save my "workspace" in the notebook?

asked 2013-02-08 12:08:12 +0200

GaryMak gravatar image

Hi - another one of my IT-naive questions ... I have some notebook worksheets which do massive preliminary calcs before then embarking on even more massive subsequent search calcs (among the results of the first code module). Is there a way of saving the results of the first calcs so that I may call them in and run the second module on them, without having to generate them all over again every time?

Thanks a lot for any help out there ....

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-08 15:43:57 +0200

ppurka gravatar image

Look at save, save_session, load, load_session and the DATA variable. There is a short explanation at the bottom of the first help page that you can access from the Help link in the notebook interface.

edit flag offensive delete link more


thanks - but maybe i didn't explain myself well enough - I am looking for something I can carry across SAGE sessions - so for example I can call it up in a new session of the SAGE server, and I can call it across from one file to another (ie I save "obj" generated from worksheet A as obj.sobj and then while running worksheet B I load it. I cannot get it even to recognize it from one session to another of worksheet A, let alone from A to B. And when I look for the files in the directories, they are not there ... sorry but I really don't understand how the worksheets are saved as directories rather than files etc etc. Is there an easy example of how to do this somewhere please? Thanks again

GaryMak gravatar imageGaryMak ( 2013-02-09 15:20:52 +0200 )edit

Try this. In worksheet A, save your obj.sobj in the DATA directory like this save(variable, DATA+'obj.sobj') Then go to the "Data" drop down menu and select this file and create a link to this file from any worksheet you want. There are instructions which say how to load this file in the other worksheet.

ppurka gravatar imageppurka ( 2013-02-09 20:01:57 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-02-08 12:08:12 +0200

Seen: 357 times

Last updated: Feb 08 '13