Re: New IPython 5 prompt

Carl Smith <[email protected]> Sun, 21 Aug 2016 13:32:11 +0100
Newsgroups gmane.comp.python.ipython.user
Message-ID <CAP-uhDd20Rb5H_dNwYfaH0mVTgSBjijs4t+RMQz9jLzEyrxDhQ@mail.gmail.com>
--===============3572591840838842719==
Content-Type: multipart/alternative; boundary=001a11419218ef410b053a941e57

--001a11419218ef410b053a941e57
Content-Type: text/plain; charset=UTF-8

This was discussed here a little while ago. You can probably figure out
what you need from that:

http://python.6.x6.nabble.com/IPython-5-Docs-Custom-Terminal-Prompts-td5194562.html

Best,

-- Carl Smith
[email protected]

On 21 August 2016 at 11:45, Thorsten Kampe <[email protected]>
wrote:

> Hello,
>
> I'm at loss how to configure the new IPython 5 prompt. How can I
> replace my old prompt (see below) using the new
> `TerminalInteractiveShell.prompts_class`?
>
> This is my old prompt:
> """
> config = get_config()
>
> PM  = config.PromptManager
> PM.in_template  = '{color.LightCyan}>>> '
> PM.in2_template = '{color.LightCyan}... '
> PM.out_template = ''
> """
>
> Thorsten
>
> _______________________________________________
> IPython-User mailing list
> [email protected]
> https://mail.scipy.org/mailman/listinfo/ipython-user
>

--001a11419218ef410b053a941e57
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e,monospace;font-size:small;color:rgb(68,68,68)">This was discussed here a =
little while ago. You can probably figure out what you need from that:</div=
><div class=3D"gmail_default" style=3D"font-family:monospace,monospace;font=
-size:small;color:rgb(68,68,68)"><br></div><div class=3D"gmail_default" sty=
le=3D""><font color=3D"#444444" face=3D"monospace, monospace"><a href=3D"ht=
tp://python.6.x6.nabble.com/IPython-5-Docs-Custom-Terminal-Prompts-td519456=
2.html">http://python.6.x6.nabble.com/IPython-5-Docs-Custom-Terminal-Prompt=
s-td5194562.html</a></font><br></div><div class=3D"gmail_default" style=3D"=
"><font color=3D"#444444" face=3D"monospace, monospace"><br></font></div><d=
iv class=3D"gmail_default" style=3D""><font color=3D"#444444" face=3D"monos=
pace, monospace">Best,</font></div></div><div class=3D"gmail_extra"><br cle=
ar=3D"all"><div><div class=3D"gmail_signature" data-smartmail=3D"gmail_sign=
ature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><span s=
tyle=3D"color:rgb(115,115,115);font-style:italic;line-height:18px"><font si=
ze=3D"1" face=3D"monospace, monospace">-- Carl Smith</font></span><br></div=
></div><div><span style=3D"color:rgb(115,115,115);font-style:italic;line-he=
ight:18px"><font size=3D"1" face=3D"monospace, monospace"><a href=3D"mailto=
:[email protected]" target=3D"_blank">[email protected]</a></font></s=
pan></div></div></div></div></div></div>
<br><div class=3D"gmail_quote">On 21 August 2016 at 11:45, Thorsten Kampe <=
span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D=
"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">Hello,<br>
<br>
I&#39;m at loss how to configure the new IPython 5 prompt. How can I<br>
replace my old prompt (see below) using the new<br>
`TerminalInteractiveShell.<wbr>prompts_class`?<br>
<br>
This is my old prompt:<br>
&quot;&quot;&quot;<br>
config =3D get_config()<br>
<br>
PM=C2=A0 =3D config.PromptManager<br>
PM.in_template=C2=A0 =3D &#39;{color.LightCyan}&gt;&gt;&gt; &#39;<br>
PM.in2_template =3D &#39;{color.LightCyan}... &#39;<br>
PM.out_template =3D &#39;&#39;<br>
&quot;&quot;&quot;<br>
<br>
Thorsten<br>
<br>
______________________________<wbr>_________________<br>
IPython-User mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"https://mail.scipy.org/mailman/listinfo/ipython-user" rel=3D"nor=
eferrer" target=3D"_blank">https://mail.scipy.org/<wbr>mailman/listinfo/ipy=
thon-user</a><br>
</blockquote></div><br></div>

--001a11419218ef410b053a941e57--

--===============3572591840838842719==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
IPython-User mailing list
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-user

--===============3572591840838842719==--