I'm using Jupyter (IPython) notebook, where pdb / ipdb runs fine, except for one problem: If I accidentally run the same cell that my pdb is in while in pdb mode, the output disappears, the entire notebook gets stuck and I can't run any more commands. I also tried interrupting or restarting the kernel; doesn't work. My only option is to shut down the notebook, and restart it.
Does anyone else experience this problem / know of a solution? Very annoying for me to have to restart the notebook every time I make this mistake.
Here are screenshots of the problem. Below I'm in pdb mode as expected:
If I then (accidentally) run the same cell my pdb is in, the notebook gets stuck trying to run that cell, and won't run anything else (like the cell below).
pdb
loop. You shouldq(uit)
pdb if you want your kernel to continue running before running another cell. – Plasticity