[IPython-dev] IPython <-> PuDB integration
Fri Jul 10 09:40:16 CDT 2009
On Fri, Jul 10, 2009 at 9:27 AM, Andreas Klöckner
> On Donnerstag 09 Juli 2009, Andreas Klöckner wrote:
> > Hi all,
> > I'm the author of PuDB , 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.
> >  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) \
> Now unfortunately, it seems that IPython spews a good bunch of stuff into
> dict I pass as "user_ns". Any way to avoid that?
> IPython-dev mailing list
How do you drop into an IPy shell with the above commands?
I get bunch of error if I try them here:
>>> from IPython.Shell import IPShell
>>> IPShell(user_ns=locals, user_global_ns=globals).mainloop(banner=banner)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/gsever/Desktop/python-repo/ipython/IPython/Shell.py", line 73,
File "/home/gsever/Desktop/python-repo/ipython/IPython/ipmaker.py", line
100, in make_IPython
File "/home/gsever/Desktop/python-repo/ipython/IPython/iplib.py", line
474, in __init__
File "/home/gsever/Desktop/python-repo/ipython/IPython/ipapi.py", line
654, in make_user_namespaces
AttributeError: 'builtin_function_or_method' object has no attribute
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
IPython 0.10.bzr.r1174 -- An enhanced Interactive Python.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev