How do I restart the IDLE Python Shell in Linux?

微笑、不失礼 提交于 2019-12-04 04:52:58

If you want the changes in module to be visible, just call something like that (where my_module is your module you updated):

reload(my_module)

See docs on reload().

Did it help?

Restart Shell has a keyboard shortcut of ctrl+F6, you could always try that.

IDLE have two modes of operation - with subprocess and without it. The 'restart shell' option is available only with subprocess. The default mode is with subprocess, but it can be changed using the argument '-n' when starting IDLE.

Apparently, the menu item that starts IDLE on Linux does that with the '-n' argument. Open IDLE without this flag and your 'restart shell' option will be back.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!