spyder - clear variable explorer along with variables from memory

后端 未结 4 2149
傲寒
傲寒 2020-12-15 09:37

To clear the console we can use the following command -

import subprocess as sp
tmp = sp.call(\'cls\',shell=True)

However, to remove a vari

4条回答
  •  心在旅途
    2020-12-15 09:49

    Go to the IPython console in the Spyder IDE and type %reset. It will prompt you to enter (y/n) as the variables once deleted cannot be retrieved. Type 'y' and hit enter. That's it.

提交回复
热议问题