Re: Clearing all variables and definitions: i.e. "resetting" mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg128342] Re: Clearing all variables and definitions: i.e. "resetting" mathematica
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Mon, 8 Oct 2012 02:32:04 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
On 10/7/12 at 1:31 AM, dmaxwarren at gmail.com (dr DanW) wrote:
>There are caveats to using CleanSlate in your init.m file in version
>6+ since the Paclet manager gets loaded after init.m. Put the line:
>DeclarePackage["Utilities`CleanSlate`",{"CleanSlate"}];
>in your init.m, and put the line
>CleanSlate[Verbose->False];
>at the top of your notebooks. DeclarePackage tees up the package to
>be loaded but it is not actually loaded until CleanSlate is
>evaluated in your notebook, which occurs after Paclet manager is
>installed. This way, Paclet manager does not get wiped out by
>CleanSlate and you do not have ugly kernel crashes when opening Doc
>Center. I lost a lot of work because of this until I figured out
>this fix.
An alternative would be to force loading of the Paclet manager.
That is at the end of my init.m file I have
<<PacletManager`;
<<Utilities`CleanSlate`;
SetOptions[CleanSlate,Verbose->False];
This way I don't need to add anything to the top of a notebook
when I start a session.
- Follow-Ups:
- Re: Clearing all variables and definitions: i.e. "resetting" mathematica
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Clearing all variables and definitions: i.e. "resetting" mathematica