Re: New IPython 5 prompt

Carl Smith <[email protected]> Sun, 21 Aug 2016 16:36:26 +0100
Newsgroups gmane.comp.python.ipython.user
Message-ID <CAP-uhDfByBg-hk1J7TVM-540Ji6baGmD0oHqNNaui8FZfWpwpQ@mail.gmail.com>
--===============2539232364974269544==
Content-Type: multipart/alternative; boundary=001a113d9e96de9ab6053a96b17e

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

I have this in my ipython_config file:

*from pygments.token import Token*

*c.TerminalInteractiveShell.highlighting_style =3D 'lovelace'*

*c.TerminalInteractiveShell.highlighting_style_overrides =3D {*
*    Token.Prompt: '#00cccc',*
*    Token.PromptNum: '#00bbcc bold',*
*    Token.OutPrompt: '#cc00cc',*
*    Token.OutPromptNum: '#bb00cc bold',*
*    }*

With a dark background, it looks really nice. It uses a teal/cyan colour
for inputs and hotpink for outputs, so if you like cyan, you might like
this. You can use it as a starting point at least.

Best,

-- Carl Smith
[email protected]

On 21 August 2016 at 16:27, Carl Smith <[email protected]> wrote:

> On 21 August 2016 at 16:05, Thomas Kluyver <[email protected]> wrote:
>
>>
>> We appreciate this is a bit more fiddly for simple custom prompts, but
>> the advantages of using prompt_toolkit outweigh it.
>>
>
> =E2=80=8BAgreed=E2=80=8B. It is more complex, but once you understand the=
 API, you can
> easily do everything you could do before, and there's some really nice ne=
w
> features and fixes. Prompt toolkit is awesome.
>
> -- Carl Smith
> [email protected]
>
>

--001a113d9e96de9ab6053a96b17e
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)">I have this in my ipython_=
config file:</div><div class=3D"gmail_default" style=3D"font-family:monospa=
ce,monospace;font-size:small;color:rgb(68,68,68)"><br></div><div class=3D"g=
mail_default" style=3D""><div class=3D"gmail_default" style=3D"color:rgb(68=
,68,68);font-family:monospace,monospace;font-size:small"><b>from pygments.t=
oken import Token</b></div><div class=3D"gmail_default" style=3D"color:rgb(=
68,68,68);font-family:monospace,monospace;font-size:small"><b><br></b></div=
><div style=3D""><div style=3D""><font color=3D"#444444" face=3D"monospace,=
 monospace"><b>c.TerminalInteractiveShell.highlighting_style =3D &#39;lovel=
ace&#39;</b></font></div></div><div style=3D"color:rgb(68,68,68);font-famil=
y:monospace,monospace;font-size:small"><div><b><br></b></div><div><b>c.Term=
inalInteractiveShell.highlighting_style_overrides =3D {</b></div><div><b>=
=C2=A0 =C2=A0 Token.Prompt: &#39;#00cccc&#39;,</b></div><div><b>=C2=A0 =C2=
=A0 Token.PromptNum: &#39;#00bbcc bold&#39;,</b></div><div><b>=C2=A0 =C2=A0=
 Token.OutPrompt: &#39;#cc00cc&#39;,</b></div><div><b>=C2=A0 =C2=A0 Token.O=
utPromptNum: &#39;#bb00cc bold&#39;,</b></div><div><b>=C2=A0 =C2=A0 }</b></=
div><div><br></div><div>With a dark background, it looks really nice. It us=
es a teal/cyan colour for inputs and hotpink for outputs, so if you like cy=
an, you might like this. You can use it as a starting point at least.</div>=
<div><br></div><div>Best,</div></div></div></div><div class=3D"gmail_extra"=
><br clear=3D"all"><div><div class=3D"gmail_signature" data-smartmail=3D"gm=
ail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"=
><span style=3D"color:rgb(115,115,115);font-style:italic;line-height:18px">=
<font size=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-height:18px"><font size=3D"1" face=3D"monospace, monospace"><a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>=
</font></span></div></div></div></div></div></div>
<br><div class=3D"gmail_quote">On 21 August 2016 at 16:27, Carl Smith <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
"><div dir=3D"ltr"><span class=3D""><div class=3D"gmail_default" style=3D"f=
ont-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><span s=
tyle=3D"font-family:arial,sans-serif;color:rgb(34,34,34)">On 21 August 2016=
 at 16:05, Thomas Kluyver </span><span dir=3D"ltr" style=3D"font-family:ari=
al,sans-serif;color:rgb(34,34,34)">&lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;</span><span style=3D"font-family=
:arial,sans-serif;color:rgb(34,34,34)"> wrote:</span><br></div></span><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><span class=3D""><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><span><div class=
=3D"gmail_extra"><div class=3D"gmail_quote"><br></div></div></span><div cla=
ss=3D"gmail_extra">We appreciate this is a bit more fiddly for simple custo=
m prompts, but the advantages of using prompt_toolkit outweigh it.</div></d=
iv></blockquote><div><br></div></span><div><div class=3D"gmail_default" sty=
le=3D"font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">=
=E2=80=8BAgreed=E2=80=8B. It is more complex, but once you understand the A=
PI, you can easily do everything you could do before, and there&#39;s some =
really nice new features and fixes. Prompt toolkit is awesome.</div></div><=
span class=3D"HOEnZb"><font color=3D"#888888"><div class=3D"gmail_default" =
style=3D"font-family:monospace,monospace;font-size:small;color:rgb(68,68,68=
)"><br></div><div><div><div data-smartmail=3D"gmail_signature"><div dir=3D"=
ltr"><div dir=3D"ltr"><div><div dir=3D"ltr"><span style=3D"color:rgb(115,11=
5,115);font-style:italic;line-height:18px"><font size=3D"1" face=3D"monospa=
ce, monospace">-- Carl Smith</font></span><br></div></div><div><span style=
=3D"color:rgb(115,115,115);font-style:italic;line-height:18px"><font size=
=3D"1" face=3D"monospace, monospace"><a href=3D"mailto:[email protected]=
" target=3D"_blank">[email protected]</a></font></span></div><div><span =
style=3D"color:rgb(115,115,115);font-style:italic;line-height:18px"><br></s=
pan></div></div></div></div></div></div></font></span></div></div></div>
</blockquote></div><br></div>

--001a113d9e96de9ab6053a96b17e--

--===============2539232364974269544==
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

--===============2539232364974269544==--