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

Carl Smith carl.input at gmail.com
Sun Jul 10 19:20:03 EDT 2016

Thanks Fernando, but please don't put yourself out on my account.
Obviously, it's something that needs figuring out, but there's no urgency


-- Carl Smith
carl.input at gmail.com

On 11 July 2016 at 00:15, Fernando Perez <fperez.net at gmail.com> wrote:

> On Sun, Jul 10, 2016 at 4:11 PM, Carl Smith <carl.input at gmail.com> wrote:
>> No problem at all, Fernando.
> Great, thanks!
>> I did have a go at it based on the code Thomas pointed to, but couldn't
>> figure out how to use the reference to `self.shell.execution_count`. When
>> it's used directly, as it is in the IPython source (passed through `str`),
>> you end up with something like this:
>>     In [<traitlets.traitlets.Int at 0x104800b70>]:
>> Using the `default_value` and `default_value_repr` methods, gives you the
>> number, but it was always `1`, no matter what the actual input number was.
> Mmh, I'm afraid I haven't really done any significant prompt
> customizations in years, way before we made the system traitlets-based... I
> don't have a quick solution handy.  But let's see if someone else can pitch
> in and we get a solution, otherwise I'll try to dig in later...
> --
> Fernando Perez (@fperez_org; http://fperez.org)
> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> fernando.perez-at-berkeley: contact me here for any direct mail
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20160711/b259b7df/attachment.html>

More information about the IPython-dev mailing list