Python 3.7’s new builtin breakpoint – a quick tour
medium.com
medium.com
import ipdb; ipdb.set_trace()
which drops you into ipython debugger shell which is largely superior to the default pdb, e.g. due to code completion (I’m not sure that’s what you meant).There’s also a %pdb magic which works in notebooks somewhat well.