How to reload line profile sources in Ipython

I want to run the line profiler in the module, but even when I restart the module itself and run it %reload_ext line_profiler, the source text will not be updated - the line numbers are still correct, but the text shows outdated text. Updating only iPython and loading the line and module profiler again forces the text to be updated.

How to update source code without rebooting ipython?

+4
source share
1 answer

You can also restart the kernel from the menu bar in iPython / Jupyter under the Kernel button without leaving the GUI.

0
source

Source: https://habr.com/ru/post/1539743/


All Articles