I an a newbie. I often get into a situation with Mathematica where I just want to really clear all memory and history of the session and then restart and evaluate the notebook I’m working on. Currently, what I do is to click on Evaluation then quit kernel and choose local . I’m not entirely sure this is the best way to do what I want. (In Maple (horrors!) there’s a restart option one can insert into the beginning. but it doesn’t always work the way I expect. Anyway, is there a quick and dirty way to accomplish this: dump clear all Mathematica memory activity from the computer’s RAM and all temporary files and then re-evaluate the notebook? Emphasis here is on quick i.e., very few clicks, perhaps one at most or perhaps there’s a command like Maple’s restart I could insert at the beginning of every notebook and by Notebook Evaluation it would automatically clean it all up right from the beginning?
Hi Kent,
one way is to start a notebook (or wherever you need it) with the line
ClearAll["Global`*"]
or
Remove["Global`*"]
Regards – Henrik
Hi Kent,
Or Quit[]
Quit[] will terminate the kernel. Do not enter it f you have any definitions you want to keep.
Regards,…Jos