Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10933
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Quit and Restart kernel quickly? |
| Date | 2012-07-15 08:29 +0000 |
| Message-ID | <jttv23$gul$1@smc.vnet.net> (permalink) |
| References | <20120714053229.16A18687A@smc.vnet.net> |
| Organization | Time-Warner Telecom |
The "catch" to using CleanSlate is, of course, that you have to remember to load it _before_ doing any evaluations that define things you later want to erase. My own experience is that, on those occasions when it turns out I need it, I neglected to load it early enough. So if this is a situation the O.P. expects to encounter frequently, it would be a good idea to load CleanSlate in an init.m. On 7/14/12 1:32 AM, Bill Rowe wrote: > On 7/13/12 at 2:54 AM, mstankus@gmail.com wrote: > >> Is there a way to quit and restart the kernel quickly? I would like >> to do this without having to use the menu twice. > > Evaluating Quit[] will stop the kernel. Restarting the kernel > can be done by evaluating pretty much anything else. > > Note, if your purpose in quitting the kernel is to reset your > session to its initial state, take a look at the package > Utilitcries`CleanSlate`. After this package is loaded you can > evaluate CleanSlate[] to reset your session to the state that > existed at the time the CleanSlate package was loaded. > > Using CleanSlate to reset your session can be faster than > quitting and restarting the kernel particularly if you have > added several things in the init.m file the kernel executes as > it starts. Additionally, CleanSlate offers finer control on > resetting things. For example you could do > > several computations > <<Utilities`CleanSlate` > more computations > CleanSlate[] > > This would reset your session state so that variables assigned > values, functions etc created during the "several computations" > are left intact while those created during "more computations" > are removed. In contrast, quitting the kernel would remove everything. > > -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Quit and Restart kernel quickly? Murray Eisenberg <murray@math.umass.edu> - 2012-07-15 08:29 +0000
csiph-web