Ask Your Question
1

When does notebook save worksheets persistently?

asked 2010-12-07 06:50:07 +0100

mandrake gravatar image

updated 2010-12-07 09:34:27 +0100

It's not clear to me when worksheets are saved in a persistant state (in a file).

I've lost changes I've made to worksheets many times after properly "save and quit"-ing. Later if either the VMware, notebook or windows crashes, or is not shutdown properly. The only way to restore data is to cross your fingers and hope that snapshots have been made (when are those made? can their creation be triggered manually?).

What's the proper way of shutting down notebook so that this issue can be avoided?

I'm using the VMware image with SAGE 4.6.

edit retag flag offensive close merge delete

Comments

What version of Sage are you working with? We disabled autosaving snapshots because it used a lot of process, but if Save and Quit isn't working, that is definitely a big problem. Maybe it's time to revisit the autosave question... But unfortunately I don't have an answer for your browser problem. I don't understand why Save and Quit would crash your computer, so this is in a comment.

kcrisman gravatar imagekcrisman ( 2010-12-07 08:10:59 +0100 )edit

I wasn't clear enough with my question: The browser does not cause a crash or anything. But if a crash or something else cause an improper shutdown of the VM or notebook I've experienced that changes after a save is lost.

mandrake gravatar imagemandrake ( 2010-12-07 09:33:35 +0100 )edit

I should also point out that snapshots are still being saved in my version, at some unknown interval or something else.

mandrake gravatar imagemandrake ( 2010-12-07 09:39:33 +0100 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2010-12-07 09:32:57 +0100

Volker gravatar image

Did you actually write the files to the harddisk? For example, on unix you can run "sync" at the command line to flush the buffers. Otherwise it is possible that the modified files stay cached in RAM for a while. If you lose power during that time window then your changes will be lost.

edit flag offensive delete link more

Comments

I'm not the one who's writing files to disk, Sage's notebook is. But that's something I wish to find out.

mandrake gravatar imagemandrake ( 2010-12-07 09:36:55 +0100 )edit
0

answered 2010-12-07 13:56:07 +0100

roland gravatar image

Hi, I experienced this several times. So I decided to 'save' my work every 10-30 minutes by (i) go to "text", (ii) select and copy all, (iii) store it in a word file. I do not know how to work with Linux, otherwise I would add a routine to do it. Clumsy, but I have certainty. "Save worksheet to file" (*.sws) is a unreliable option especially if the file size exceeds 12Mb. In general, the text files are small in size. The reason this type of 'lifelines' is not added as a standard notebook action is maybe because I noticed over time that almost all developers are not using Windows but only Linux. Roland

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-12-07 06:50:07 +0100

Seen: 896 times

Last updated: Dec 07 '10