简体   繁体   English

如何在Ipython中重新加载行分析器源

[英]How to reload line profiler sources in Ipython

I want to run the line profiler on a module, but even when I reload the module itself and run %reload_ext line_profiler , the source text does not get refreshed -- the line numbers are still correct, but the text shown refers to outdated text. 我想在模块上运行line profiler,但即使我重新加载模块本身并运行%reload_ext line_profiler ,源文本也不会刷新 - 行号仍然正确,但显示的文本指的是过时的文本。 Only closing iPython and loading the line profiler and module again makes the text refresh. 只关闭iPython并再次加载行分析器和模块才能刷新文本。

How do I make the source text refresh without reloading ipython? 如何在不重新加载ipython的情况下刷新源文本?

您还应该能够在内核按钮下的iPython / Jupyter菜单栏中重新启动内核,而无需离开GUI。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM