update module on import to python interpreter

北慕城南 提交于 2019-11-29 15:12:48

(Spyder dev here) I think at the moment you are not able to reload a module directly in the console (but we are considering to change this in the future).

The idea about UMD is that it will reload your modules but only if you run a file from the editor that imports them. It doesn't work if you want to reload them directly in the console.

Let's say you developed a module, then you are probably using it in a different script that (most likely) you'll be writing in our editor and send it to run to our console. UMD is a little bit of magic that reloads it for you when that happens.

Maybe useful for others. In Spyder 3.0.0, the modules can be reloaded by,

Tools -> Update modules names list.

It worked for me.

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