I usually use an inelegant brute force method to clear all variables and definitions: Quit Kernel followed by Evaluate Notebook. Sometimes there is some hidden code lurking in a notebook. This is also eliminated.
I did a quick notebook and typed in x =1 and hit enter. Then typed in Quit Kernel and hit enter. Then I typed in x and a value of 1 showed up.Am I missing something?
After you select Quit Kernel (from the Evaluation menu) do you follow up by clicking on Local in the sidebar?
No I didn't. I did not use the drop down menus at all. I just typed it in.Jake
That worked great, wish I had seen it a long time ago. Thanks for your help.
I read through all of the posts to this subject and still don't understand what will work and what will not work. For an example I have an equation that uses 12 constants. My first line I put in all of the symbols and there values that I want to use. Example, rowna=1;rowcl=2;rowk=3; and keep on going until I have all of them listed with values. Them I put in my equation and run it. If I want to I can then can go back into my first line and change what I want too.But if I want to get rid of all of these assigned values, what do I do. I know that I could use the Clear command and list every constant that I used, but it takes time and its easy to make a mistake.Is there any way to clear out all variables that I have assigned values to for each section of a book that I am writing. I always end up getting caught with an old value that I forgot to clear out?