Ask Your Question
0

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

asked 12 years ago

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 ....

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

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.

Preview: (hide)
link

Comments

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 ( 12 years ago )

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 ( 12 years ago )

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 415 times

Last updated: Feb 08 '13