Data Science, Jupyter Notebook, Python, Deep Dives, Tips And Tricks.
previous command starts a debugging session at any given line that raises an error; if you want to start the debugger at an arbitrary code line, add the following line: And run your tests like this: Once you’re done, remove from pdb import set_trace; set_trace() from your code. If instead of the