Debugging Jupyter notebooks - David Hamann
davidhamann.de › 04 › 22Apr 22, 2017 · The built-in Python debugger pdb works just fine in a Jupyter notebook. With import pdb; pdb.set_trace () we can enter the debugger and get a little interactive prompt. def add_to_life_universe_everything ( x ): answer = 42 import pdb; pdb. set_trace () answer += x return answer add_to_life_universe_everything ( 12) In the debugger we can then ...