IPython Console

您所在的位置:网站首页 spyder搜索 IPython Console

IPython Console

2024-06-04 17:36| 来源: 网络整理| 查看: 265

Reload changed modules¶

When working in an interactive session, Python only loads a module from its source file once, the first time it is imported.

Spyder’s User Module Reloader (UMR) automatically reloads modules right in your existing IPython consoles whenever they are modified and re-imported. With the UMR enabled, you can test changes to your code without restarting the kernel.

UMR is enabled by default, and it will provide you with a red Reloaded modules: message in the console listing the files it has refreshed when it is activated. If desired, you can turn it on or off, and prevent specific modules from being reloaded, under Preferences ‣ Python interpreter ‣ User Module Reloader (UMR).



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3