Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12000

Re: Clearing all variables and definitions: i.e. "resetting" mathematica

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Clearing all variables and definitions: i.e. "resetting" mathematica
Date 2012-10-08 06:52 +0000
Message-ID <k4tt71$set$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


On 10/7/12 at 1:31 AM, dmaxwarren@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.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Clearing all variables and definitions: i.e. "resetting" mathematica Bill Rowe <readnews@sbcglobal.net> - 2012-10-08 06:52 +0000

csiph-web