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

Bradley M. Froehle brad.froehle@gmail....
Wed Jul 25 13:12:42 CDT 2012


Add Kernel.shell.set_completer_frame() right before the call to Kernel.start().

On Wed, Jul 25, 2012 at 11:07 AM, 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
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>


More information about the IPython-dev mailing list