Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: "unload" a package

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70861] Re: [mg70836] Re: "unload" a package
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Mon, 30 Oct 2006 05:32:22 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200610290338.XAA08522@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

I believe there is a "catch" to using CleanSlate:  You have to remember 
to load it BEFORE loading the package(s) that you now want to, in 
effect, unload.

Unfortunately, one only realizes too late that you need to unload a 
package, so you didn't anticipate that need and didn't already load 
CleanSlate.

The function CleanSlate[] does, though, allow some fine control over 
what gets unloaded:  optionally you can specify the contexts you want to 
unload.  Or, using CleanSlateExcept, you can unload everything except 
what's in the contexts you specify.

Bill Rowe wrote:
> On 10/28/06 at 5:21 AM, dimmechan at yahoo.com (dimitris) wrote:
> 
>> I wondered how someone can "UNLOAD" a package without "kill" the
>> Kernel?
> 
>> That is, is there a command that does the opposite of Get or Needs?
> 
> The CleanSlate package found at
> 
> <http://library.wolfram.com/infocenter/MathSource/4718/>
> 
> is quite useful for this purpose
> --
> To reply via email subtract one hundred and four
> 
> 

-- 
Murray Eisenberg                     murray at 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


  • Prev by Date: RE: Labelled ticks at the origin
  • Next by Date: Re: Re: Searching for a function
  • Previous by thread: Re: "unload" a package
  • Next by thread: Re: "unload" a package