Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11990
| From | dr DanW <dmaxwarren@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Clearing all variables and definitions: i.e. "resetting" mathematica |
| Date | 2012-10-07 05:38 +0000 |
| Message-ID | <k4r4hh$np3$1@smc.vnet.net> (permalink) |
| References | <k466qu$a8e$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
CleanSlate[] marks the state of memory on its first invocation. Subsequent calls to CleanSlate[] reset the memory to that state. This is why it should be the first thing run in your session. I have it at the top of every notebook so Cntl-A Shift Enter gives me a clean run of the notebook.
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.
Daniel
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Clearing all variables and definitions: i.e. "resetting" mathematica Brentt <brenttnewman@gmail.com> - 2012-09-29 07:09 +0000
Re: Clearing all variables and definitions: i.e. "resetting" mathematica awnl <awnl@gmx-topmail.de> - 2012-09-30 00:25 +0000
Re: Clearing all variables and definitions: i.e. "resetting" mathematica dgolber@aol.com - 2012-10-06 08:18 +0000
Re: Clearing all variables and definitions: i.e. "resetting" mathematica dr DanW <dmaxwarren@gmail.com> - 2012-10-07 05:38 +0000
Re: Clearing all variables and definitions: i.e. "resetting" mathematica dgolber@aol.com - 2012-10-08 06:52 +0000
csiph-web