How to clear the interpreter console?

后端 未结 30 2192
自闭症患者
自闭症患者 2020-11-21 18:15

Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff

30条回答
  •  梦如初夏
    2020-11-21 18:25

    I am using Spyder (Python 2.7) and to clean the interpreter console I use either

    %clear

    that forces the command line to go to the top and I will not see the previous old commands.

    or I click "option" on the Console environment and select "Restart kernel" that removes everything.

提交回复
热议问题