Clear everything except a few specific variables in IPython

I know teams %reset

and %reset_selective

in IPython

. However, suppose you have a lot of variables, and you want to clear all variables, except x

, y

, z

. Is there a concise way to do this? Tell me %reset_all_except x,y,z

?

+3
python ipython ipython-magic


source to share


No one has answered this question yet

Check out similar questions:

1531
Calling a function of a module using its name (string)
1329
How to logout / logout / disable Python virtualenv
1085
Correct way to declare custom exceptions in modern Python?
994
How do I return multiple values ​​from a function?
873
Big data workflows using pandas
821
How do I check if a variable exists?
542
Using IPython notebooks under version control
299
Reloading submodules in IPython
79
How do I clear variables in ipython?
34
Run IPython wrapper to exclude



All Articles
Loading...
X
Show
Funny
Dev
Pics