Re-virginating Manipulates?
- To: mathgroup at smc.vnet.net
- Subject: [mg114431] Re-virginating Manipulates?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Sat, 4 Dec 2010 06:13:37 -0500 (EST)
On 12/3/10 at 5:19 AM, siegman at stanford.edu (AES) wrote: >It's always surprised me, frankly, that Mathematica doesn't have a >built-in "Clean Slate" facility for its kernel that would be >equivalent to executing a "Quit Kernel, then Restart Kernel" command >(although there was a third party (?) command or utility with this >name in some earlier version, was there not?). Must be somehow hard >to do this? The CleanSlate package is a standard package that has been shipping some time with Mathematica and is still present in version 8. Do FileNames[ ToFileName[{$InstallationDirectory, "AddOns", "ExtraPackages", "Utilities"}, "*"]] and you will see the package is there. I believe you will find the directory returned by ToFileName[{$InstallationDirectory, "AddOns"},"ExtraPackages"] is by default one of the directories included in the list of directories returned by $Path. So, you should be able to load the package by doing either Needs["Utilities`CleanSlate`"] or <<Utilities`CleanSlate` For myself, I find this package so useful I have it load in all my sessions which I've accomplished by adding <<PacletManager`; <<Utilities`CleanSlate`; SetOptions[CleanSlate,Verbose->False]; at the end of my init.m file. Notice, I intentionally load the PacletManager prior to loading the CleanSlate package. In a previous version, I found if I did not do this, the PacletManager loaded after CleanSlate loaded. As a consequence, doing CleanSlate[] would remove the PacletManager, something I didn't want to happen. I have not tried doing differently with version 8 to see if this is still needed.