[IPython-dev] Autocomplete fails when kernel namespace is updated

Ivan Zhang mirage007@gmail....
Wed Jul 25 13:07:58 CDT 2012


Hi,

I'm running a simple script to feed a custom namespace into a kernel.
Everything works fine except autocomplete.
-------------
Kernel = IPKernelApp.instance()
Kernel.initialize(['python', '--pylab=qt'])
Namespace = {'abcdef': 123}
Namespace.update(Kernel.shell.user_ns)
Kernel.shell.user_ns = Namespace
Kernel.start()
----------

If I connect a console via:
Ipython console --existing

Tab complete doesn't show for variable abcdef
However when evaluating it, it does show up, it also shows up when using
%who
I'm using Ipython .13 and python 2.7

Any ideas?

-Ivan


-- 
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120725/1fbfbdf8/attachment.html 


More information about the IPython-dev mailing list