Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

auto-save in Mathematica

675 views
Skip to first unread message

eric g

unread,
Feb 25, 2010, 5:35:26 PM2/25/10
to
Hello Guys,
My system crashed and I lost 4 hour of coding, how to setup auto-save in
Mathematica.
thanks in advance,
Eric

David Reiss

unread,
Feb 26, 2010, 4:07:34 AM2/26/10
to
Why aren't you saving regularly as you are coding? I will rarely go
15 minutes without saving my work...

--David

Adam

unread,
Feb 26, 2010, 4:09:49 AM2/26/10
to

I will tell you, then tell you not to use it.

Preferences -> Advanced --> Open Option Inspector --> Notebook
options ---> NotebookAutoSave
Preferences -> Advanced --> Open Option Inspector --> Search for
"Save" It is the first one.

Dont use it. In my experience, Mathematica has very poor "Undo"
ability. Every now and then I will inadvertently delete a big chunk
of important stuff and find I am not able to Undo it back (because I
waited 30 seconds and typed a few characters before realizing it, or
something) In that situation, the only escape is that I have NOT
autosaved, and I can revert.
If you don't reflexively save (4 hrs!? Really?) start training
yourself to do so - IMHO there is no substitute.

Eirik Larsen Følstad

unread,
Feb 27, 2010, 3:11:58 AM2/27/10
to
Hi,

check out the following

http://reference.wolfram.com/mathematica/ref/NotebookAutoSave.html


Best regards,
Eirik Larsen F=F8lstad

On Feb 26, 2010, at 10:07 AM, David Reiss wrote:

Why aren't you saving regularly as you are coding? I will rarely go
15 minutes without saving my work...

--David

fizzy

unread,
Feb 27, 2010, 3:14:56 AM2/27/10
to
I prefer to click on Window and then Show Toolbar....I add this to every
saved Notebook...the Toolbar has a 'Save' icon...so , every so often I
can just put my cursor up there, click and the Notebook is saved....plus
it's easy to add the type of line I want next in the Notebook...i.e.
SubSection or Text, etc....

jerry blimbaum

George Woodrow III

unread,
Feb 28, 2010, 4:51:54 AM2/28/10
to
Checking this on Max OS X (10.6.2) --

I see no 'Save' icon, only style, alignment, Fonts, Print, Help.

It would be nice to have a save icon, but I can't see how to add one. Some programs have a menu command to format the toolbar, but I can't find it in Mathematica.

george woodrow III

fizzy

unread,
Feb 28, 2010, 4:52:05 AM2/28/10
to
I'm using Windows XP computer...I dont know if that makes any
difference...on my ToolBar there is the following starting from the
left....

first, Style, then 'Save' icon, then Print, Options Inspector and then 4
icons for Alignment...


jb

Helen Read

unread,
Feb 28, 2010, 5:01:13 AM2/28/10
to
On 2/27/2010 3:14 AM, fizzy wrote:
> I prefer to click on Window and then Show Toolbar....I add this to every
> saved Notebook...the Toolbar has a 'Save' icon...so , every so often I
> can just put my cursor up there, click and the Notebook is saved....plus
> it's easy to add the type of line I want next in the Notebook...i.e.
> SubSection or Text, etc....

You can set the Toolbar to be always on by doing the following:

On the Mathematica menu, go to Format, Option Inspector. In the Option
Inspector, pick Global Perferences in the Show Option Values dropdown.
Open up Notebook Options on the left pane, then Display Options. Over on
the right pane, select WindowToolbars and select EditBar from the dropdown.

I'm also a big fan of the keyboard shortcut Ctl-S for save. It is second
nature for me to hit Ctl-S every few minutes when working in Mathematica
or just about any other application. I wish I could get my students to
do it (I try, but some of them just won't save).

--
Helen Read
University of Vermont

George Woodrow III

unread,
Mar 1, 2010, 4:44:59 AM3/1/10
to
So, it's platform specific.

I'm happy enough with the default in OS X -- Like Helen Reed, I use the keyboard shortcut to save (and save often). However, it would be a good idea for Wolfram Research to add a means to edit the contents of the toolbar, as is common (in OS X, at least) for most applications.

george

On Feb 28, 2010, at 4:52 AM, fizzy wrote:

> I'm using Windows XP computer...I dont know if that makes any
> difference...on my ToolBar there is the following starting from the
> left....
>
> first, Style, then 'Save' icon, then Print, Options Inspector and then 4
> icons for Alignment...
>
>
> jb
> ----- Original Message -----
> From: George Woodrow III
> To: fizzy
> Cc: math...@smc.vnet.net
> Sent: Saturday, February 27, 2010 7:16 AM
> Subject: Re: Re: auto-save in
> Mathematica
>
>
> Checking this on Max OS X (10.6.2) --
>
> I see no 'Save' icon, only style, alignment, Fonts, Print, Help.
>
> It would be nice to have a save icon, but I can't see how to add one.
> Some programs have a menu command to format the toolbar, but I can't
> find it in Mathematica.
>
> george woodrow III
>
>

> On Feb 27, 2010, at 3:14 AM, fizzy wrote:
>
>> I prefer to click on Window and then Show Toolbar....I add this to
> every
>> saved Notebook...the Toolbar has a 'Save' icon...so , every so often
> I
>> can just put my cursor up there, click and the Notebook is
> saved....plus
>> it's easy to add the type of line I want next in the Notebook...i.e.
>
>> SubSection or Text, etc....
>>

fizzy

unread,
Mar 1, 2010, 4:45:09 AM3/1/10
to
George......

after reading your response, I went and looked at a Notebook with the Toolbar...and you are so right...there is so much 'empty' space after the alignment icons that could be used for something....it would be terrific to add things I wanted there....or , at least, have more options......

jerry

So, it's platform specific.

I'm happy enough with the default in OS X -- Like Helen Reed, I use the keyboard shortcut to save (and save often). However, it would be a good idea for Wolfram Research to add a means to edit the contents of the toolbar, as is common (in OS X, at least) for most applications.

george

On Feb 28, 2010, at 4:52 AM, fizzy wrote:

> I'm using Windows XP computer...I dont know if that makes any
> difference...on my ToolBar there is the following starting from the
> left....
>

> first, Style, then 'Save' icon, then Print, Options Inspector and then =


4
> icons for Alignment...
>
>
> jb
> ----- Original Message -----
> From: George Woodrow III
> To: fizzy
> Cc: math...@smc.vnet.net
> Sent: Saturday, February 27, 2010 7:16 AM
> Subject: Re: Re: auto-save in
> Mathematica
>
>
> Checking this on Max OS X (10.6.2) --
>
> I see no 'Save' icon, only style, alignment, Fonts, Print, Help.
>

> It would be nice to have a save icon, but I can't see how to add one.=

> Some programs have a menu command to format the toolbar, but I can't
> find it in Mathematica.
>
> george woodrow III
>
>
> On Feb 27, 2010, at 3:14 AM, fizzy wrote:
>
>> I prefer to click on Window and then Show Toolbar....I add this to
> every

>> saved Notebook...the Toolbar has a 'Save' icon...so , every so often=

> I
>> can just put my cursor up there, click and the Notebook is
> saved....plus

>> it's easy to add the type of line I want next in the Notebook...i.e.=

David Bailey

unread,
Mar 1, 2010, 5:19:44 AM3/1/10
to
You don't really want Mathematica to save your work at arbitrary points
of time - if you are working on it, the chances are what you save will
be impossible to run. Also, if your system does crash, there is a high
probability that it may be writing to disk when the crash actually happens.

I save regularly, and I have learned to notice the little asterisk next
to the file name on the caption bar that tells you that the file has
been changed since the last save.

David Bailey
http://www.dbaileyconsultancy.co.uk

fizzy

unread,
Mar 1, 2010, 5:20:32 AM3/1/10
to
Helen....thank you so much....after all these years I became an expert at
click 'Window' then 'Show Toolbar'.. .....after I did what you said I opened a New Notebook....and there it was...the Toolbar....

It really hurts to lose such expertise but I'm sure my grief wont last long

thanks...jerry blimbaum


On 2/27/2010 3:14 AM, fizzy wrote:
> I prefer to click on Window and then Show Toolbar....I add this to every

> saved Notebook...the Toolbar has a 'Save' icon...so , every so often I


> can just put my cursor up there, click and the Notebook is saved....plus

> it's easy to add the type of line I want next in the Notebook...i.e.
> SubSection or Text, etc....

You can set the Toolbar to be always on by doing the following:

David Bailey

unread,
Mar 2, 2010, 3:38:59 AM3/2/10
to
George Woodrow III wrote:
> Checking this on Max OS X (10.6.2) --
>
> I see no 'Save' icon, only style, alignment, Fonts, Print, Help.
>
> It would be nice to have a save icon, but I can't see how to add one. Some programs have a menu command to format the toolbar, but I can't find it in Mathematica.
>

You can, of course, create your own 'toolbar' by setting the DockedCells
option on the notebook.

David Bailey
http://www.dbaileyconsultancy.co.uk

John Jowett

unread,
Mar 5, 2010, 4:37:45 AM3/5/10
to
As recommended here, I do save my notebooks frequently (and make
copies now and again, especially while coding intensively). However
an extremely useful supplementary technique is to use the "Bare Bones
Backup" described by DrMajorBob in this group a few years ago:

http://forums.wolfram.com/mathgroup/archive/2007/Jun/msg00579.html

This makes a palette with a button that saves a time-stamped version
of the notebook with all the output removed - generally a pretty small
file - in a backup directory. You can have hundreds of these, each
containing the essential stuff (i.e. that you typed yourself) as it
was at a given moment.

I made some adaptations of my own to include the year in the notebook
name, choose my own location for the backup files, etc.

John Jowett


On Mar 2, 9:38 am, David Bailey <d...@removedbailey.co.uk> wrote:


> George Woodrow III wrote:
> > Checking this on Max OS X (10.6.2) --
>
> > I see no 'Save' icon, only style, alignment, Fonts, Print, Help.
>
> > It would be nice to have a save icon, but I can't see how to add one. Some programs have a menu command to format the toolbar, but I can't find it in Mathematica.
>

David Reiss

unread,
Mar 7, 2010, 4:12:38 AM3/7/10
to
On Mar 5, 4:37 am, John Jowett <john.m.jow...@gmail.com> wrote:
> As recommended here, I do save my notebooks frequently (and make
> copies now and again, especially while coding intensively). However
> an extremely useful supplementary technique is to use the "Bare Bones
> Backup" described by DrMajorBob in this group a few years ago:
>
> http://forums.wolfram.com/mathgroup/archive/2007/Jun/msg00579.html
>
> This makes a palette with a button that saves a time-stamped version
> of the notebook with all the output removed - generally a pretty small
> file - in a backup directory. You can have hundreds of these, each
> containing the essential stuff (i.e. that you typed yourself) as it
> was at a given moment.
>
> I made some adaptations of my own to include the year in the notebook
> name, choose my own location for the backup files, etc.
>
> John Jowett
>
> On Mar 2, 9:38 am, David Bailey <d...@removedbailey.co.uk> wrote:
>
>
Also see the backup functionality in A WorkLife Framework:
http://scientificarts.com/worklife In it all notebooks can be
provided with at toolbar that has a backup menu....

--David


>
> > George Woodrow III wrote:
> > > Checking this on Max OS X (10.6.2) --
>
> > > I see no 'Save' icon, only style, alignment, Fonts, Print, Help.
>
> > > It would be nice to have a save icon, but I can't see how to add one. Some programs have a menu command to format the toolbar, but I can't find it in Mathematica.
>

0 new messages