What is the right way to debug in iPython notebook?

前端 未结 10 1705
不知归路
不知归路 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:45

    A native debugger is being made available as an extension to JupyterLab. Released a few weeks ago, this can be installed by getting the relevant extension, as well as xeus-python kernel (which notably comes without the magics well-known to ipykernel users):

    jupyter labextension install @jupyterlab/debugger
    conda install xeus-python -c conda-forge
    

    This enables a visual debugging experience well-known from other IDEs.

    Source: A visual debugger for Jupyter

提交回复
热议问题