Re: Is there a FAQ? (Clear all)
- To: mathgroup at smc.vnet.net
- Subject: [mg18739] Re: Is there a FAQ? (Clear all)
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sat, 17 Jul 1999 02:36:52 -0400
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <7mjv38$fni@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
To clear out just definitions you have made yourself in the session, and to restart the In/Out tag numbering, you could use the package ClearAll.m, whose contents are as follows: Unprotect["Global`*"]; Remove["Global`*"]; Unprotect[Out]; Clear[Out]; Protect[Out]; Unprotect[In]; Clear[In]; Protect[In]; $Line=0; Print["All Global`* and In and Out cleared!"] (Sorry, I cannot recall the source or author of this package. Put this in a file ClearAll.m in the AddOns\Applications directory, say. For something more drastic, which will clear out all created context and packages, etc., loaded into such contexts, you could use the the menu commands: Kernel > Quit Kernel Kernel > Start Kernel This is definitely faster than using Quit and then restarting the entire Mathematica Front End. Jos Bergervoet wrote: > > I would like to use a command like 'restart' in Mathematica. > > But: neither Restart nor Clear["*"] does what I want (it should be > as if I quit and restart!) Is there a Mathematica FAQ? Or does anyone > know how to do a quick restart? The help function on my system seems > to work with CD roms in the background somewhere. I can't wait for > that long :-) > > Greetings, > Jos > > -- > Dr. Jozef R. Bergervoet Electromagnetism and EMC > Philips Research Laboratories, Eindhoven, The Netherlands > Building WS01 FAX: +31-40-2742224 > E-mail: bergervo at natlab.research.philips.com Phone: +31-40-2742403 -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. phone 413 549-1020 (H) Univ. of Massachusetts 413 545-2859 (W) Amherst, MA 01003-4515