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

Ivan Zhang mirage007@gmail....
Fri Aug 3 09:17:33 CDT 2012


Hi Bradley,

Added Kernel.shell.set_completer_frame() right before start, didn't seem to have worked, still doesn't resolve but shows up when evaluating.

Any thoughts?

-i

On Jul 25, 2012, at 2:07 PM, Ivan Zhang <mirage007@gmail.com> wrote:

> 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


More information about the IPython-dev mailing list