Posted on May 28, 2008 at 11:53 am
Embedding a Python shell scripts
Everybody knows “import pdb; pdb.set_trace()”, that’s probably the first thing anyone would do when you’re trying to hunt for a bug or hit an exception (“pdb.pm()” ?). Its just as easy to embed IPython or a plain old Python shell in a python script. The IPython manual covers this in detail. Another way would be [...]