# first shell # somehow this is needed for `ipdb` to run correctly > %pdb # first shell > import pdb > pdb.runcall(function_foo, ...any args and kwargs)