What is the right way to debug in iPython notebook?

前端 未结 10 1618
不知归路
不知归路 2020-11-30 16:50

As I know, %debug magic can do debug within one cell.

However, I have function calls across multiple cells.

For example,

In[1]:          


        
10条回答
  •  有刺的猬
    2020-11-30 17:29

    Your return function is in line of def function(main function), you must give one tab to it. And Use

    %%debug 
    

    instead of

    %debug 
    

    to debug the whole cell not only line. Hope, maybe this will help you.

提交回复
热议问题