【发布时间】:2015-05-13 15:23:03
【问题描述】:
我知道IPython 中的%reset 和%reset_selective 命令。但是,假设您有很多变量,并且您想要清除除x、y、z 之外的所有变量。有没有一种简洁的方法来实现这一点?
说%reset_all_except x,y,z?
【问题讨论】:
-
没有,但你可以define your own magic command。
标签: python ipython ipython-magic