[IPython-dev] [IPython 5] [Docs] Custom Terminal Prompts
carl.input at gmail.com
Mon Jul 11 16:12:19 EDT 2016
I think the problem stems from what Thomas said: There's one shell
executing code, and another just sat around doing nothing. It's the later
one that the CustomPrompt class has a reference to.
On the PR, should I put the example code right there in the docs, where the
API is explained, or is there a wiki or something? Happy either way. Just
unsure what's correct these days.
On Mon, 11 Jul 2016 13:01 Thomas Kluyver, <takowl at gmail.com> wrote:
> On 11 July 2016 at 02:27, Carl Smith <carl.input at gmail.com> wrote:
>> get_ipython().prompts = CustomPrompts(Shell())
> Don't instantiate a new shell - the value you get from get_ipython() is
> the active shell. So do this:
> ip = get_ipython()
> ip.prompts = CustomPrompts(ip)
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev