First time here? Check out the FAQ!

Ask Your Question
1

When does notebook save worksheets persistently?

asked 14 years ago

mandrake gravatar image

updated 14 years ago

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.

Preview: (hide)

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

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

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

mandrake gravatar imagemandrake ( 14 years ago )

2 Answers

Sort by » oldest newest most voted
0

answered 14 years ago

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.

Preview: (hide)
link

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

answered 14 years ago

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

Preview: (hide)
link

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: 14 years ago

Seen: 964 times

Last updated: Dec 07 '10