[IPython-dev] [IPython 5] [Docs] Custom Terminal Prompts

Thomas Kluyver takowl at gmail.com
Mon Jul 11 08:00:43 EDT 2016

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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20160711/394cfaf2/attachment.html>

More information about the IPython-dev mailing list