MathGroup Archive 2012

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

Search the Archive

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


Am 29.09.2012 09:09, schrieb Brentt:
> Hi, is there any way to reset an entire session, clearing all variables and
> definitions to what they would be when opening up mathematica. Occasionally
> I look through the docs for this functionality but it has always eluded me
> (and I must have read most of the docs by now ), so usually will just shut
> down mathematica and restart. There has got to be a better way right?
>
>

When you work the usual way with from the frontend I think a Kernel quit 
(either from the Evaluate menu or just by evaluating Quit) will be the 
most convenient and reliable way to reset the session. The next 
evaluation will automatically start a new, fresh kernel. There are ways 
to reset the Kernel without quitting it, but on a modern computer the 
restart is so fast that I wouldn't struggle with all the eventualities 
that arise when trying to do a reliable full reset.

hth,

albert



  • Prev by Date: Re: Problem with SetDelayed lhs:=rhs
  • Next by Date: Re: How to lock down a Dynamic object in a report
  • Previous by thread: Clearing all variables and definitions: i.e. "resetting" mathematica
  • Next by thread: Re: Clearing all variables and definitions: i.e. "resetting" mathematica