I’m playing with JupyterLab’s built-in debugger for the first time, pretty slick. However, I’m having trouble getting it to step into code that isn’t local to the notebook (like methods of third-party libraries). Searching for help online, I find a series of issues/PRs that seem related. The most recent one is still open after two years, and seems to say that this support was merged and then reverted.
These resources are all written from a development-oriented perspective, and from a user perspective I’m still not sure whether this support ever landed. The issue still being open implies no, but the user documentation doesn’t mention this limitation so I thought I’d double-check here.
Does Jupyter’s debugger support stepping into code that is outside the notebook?
In the above example, I set a breakpoint on the last line. I’m able to step into my_function, but I’m not able to step any deeper (into smf.ols). Code from the screenshot:
import pandas as pd
import statsmodels.formula.api as smf
def my_function(df):
mod = smf.ols("y ~ x", data=df)
df = pd.DataFrame(dict(y=[0, 1], x=[2, 4]))
my_function(df)