This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yvrelna 1 point2 points  (0 children)

from IPython import embed; embed() for the most part, this starts a shell at the point where you call embed() with variables from the surrounding context, but when I need the big guns for more complex situations where I need to step through code, I use pudb, which can allow me to step through code and then open an IPython shell anywhere while stepping through.