[IPython-dev] [Bug 215994] Re: We need to add the "complete" method to the Interpreter/Engine/Controller in IPython1
Barry Wark
barrywark at gmail.com
Thu Nov 13 00:28:26 EST 2008
I agree with the decision to push completion into the frontends.
However, now we need to think about how the frontend is to gain
knowlege of the relevant namespace (presumably the user wants the
completion to be relevant for the namespace where the command will
eventually be executed, not for the frontend). Observing namespace
changes in the engine (via the as-yet-to-be-written distributed
notification system; I think this will be quite easy building on the
synchronous notification system already written) is one possibility.
Querying the entire engine namespace after each executed block is an
other (less appealing) option. Thoughts?
Barry
On Tue, Nov 11, 2008 at 11:42 AM, Brian Granger <ellisonbg at gmail.com> wrote:
> ** Changed in: ipython
> Status: New => Won't Fix
>
> --
> We need to add the "complete" method to the Interpreter/Engine/Controller in IPython1
> https://bugs.launchpad.net/bugs/215994
> You received this bug notification because you are a member of IPython
> Developers, which is subscribed to IPython.
>
> Status in IPython - Enhanced Interactive Python: Won't Fix
>
> Bug description:
> The Interpreter class in ipython1.core.interpreter should have a complete method that take a string and returns a valid list of completions. For now, this can just raise NotImplementedError. This method will also need to be added to the various Engine/Controller interfaces and implementations. This is needed so frontend writers can begin to call the method.
>
More information about the IPython-dev
mailing list