Asked By – grasshopper
Sometimes I rerun a script within the same ipython session and I get bad surprises when variables haven’t been cleared. How do I clear all variables?
And is it possible to force this somehow every time I invoke the magic command %run?
Now we will see solution for issue: How to clear variables in ipython?
%reset seems to clear defined variables.