<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 11 July 2016 at 02:27, Carl Smith <span dir="ltr"><<a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_default"><font color="#444444" face="monospace, monospace">get_ipython().prompts = CustomPrompts(Shell())</font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace"></font></div></blockquote></div><br></div><div class="gmail_extra">Don't instantiate a new shell - the value you get from get_ipython() is the active shell. So do this:<br><br></div><div class="gmail_extra">ip = get_ipython()<br></div><div class="gmail_extra">ip.prompts = CustomPrompts(ip)<br></div></div>