In python notebooks, I have used
breakpoint in scripts to invoke the debugger within a notebook. However, something seems to have changed, and this is no longer the case.
A script such as
shouldbreak.py containing the following:
def should_break(): print('Before breakpoint') breakpoint() print('After breakpoint')
when run in a notebook, simply runs to completion:
In : import shouldbreak shouldbreak.should_break() Before breakpoint After breakpoint
This is on MACOS Catalina, running Python 3.9.7 and notebook server 6.4.5