python notebook breakpoints
from IPython.core.debugger import Pdb; #Insert the above line wherever you want to add the breakpoint Pdb().set_trace()
Here is what the above code is Doing:
1. Importing the Pdb class from the IPython.core.debugger module.
2. Creating an instance of the Pdb class.
3. Calling the set_trace() method on the Pdb instance.