[IPython-dev] IPython <-> PuDB integration

Robert Kern robert.kern at gmail.com
Fri Jul 10 19:04:51 EDT 2009

On 2009-07-10 09:27, Andreas Klöckner wrote:
> On Donnerstag 09 Juli 2009, Andreas Klöckner wrote:
>> Hi all,
>> I'm the author of PuDB [1], a full-screen, console-based visual debugger
>> for Python. I've recently (0.92.6) added support for using IPython as an
>> interactive shell, prompted by a user's request.
>> [1] http://pypi.python.org/pypi/pudb
> Actually, I'm running into a problem here. This is what my IPy integration
> code looks like:
>      from IPython.Shell import IPShell
>      IPShell(user_ns=locals, user_global_ns=globals) \
>              .mainloop(banner=banner)
> Now unfortunately, it seems that IPython spews a good bunch of stuff into the
> dict I pass as "user_ns". Any way to avoid that?

Not really. A worthwhile addition to IPShell would be a method that cleans up 
things it added to the namespace.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the IPython-dev mailing list