spyder - clear variable explorer along with variables from memory

后端 未结 4 2150
傲寒
傲寒 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 10:07

    In Spyder, Do following steps
    Run
    Configuration per file...
    Clear all variables before execution [Select Checkbox]

    This actually clears variables from previous run of the file. Hope it helps.

提交回复
热议问题