Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91182
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Setting prompt in ipython |
| Date | 2015-05-24 14:56 +0100 |
| References | <87siamnt6r.fsf@Equus.decebal.nl> <mailman.11.1432468462.5151.python-list@python.org> <87lhgenpj8.fsf@Equus.decebal.nl> <87h9r2nmy1.fsf@Equus.decebal.nl> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19.1432475784.5151.python-list@python.org> (permalink) |
On 24/05/2015 14:07, Cecil Westerhof wrote:
> Op Sunday 24 May 2015 14:11 CEST schreef Cecil Westerhof:
>
>> Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton:
>>
>>> This file supposedly lists what you can customise your ipython
>>> prompt to show. I have not tried this myself.
>>>
>>> http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/manuals/IPython/node7.html
>>
>> I will look into it.
>
> I use the following in ~/.ipython/profile_default/startup/00-init.ipy:
> import time
>
> %config PromptManager.in_template = r'[{time.strftime("%a, %d %b %T")} \u@\h:\Y1]\nIn [\#]: '
>
> Now I should contemplate what other things would be useful there. ;-)
>
One of the major warts that (i)Python has yet to address via a PEP is
that it fails dismally when it comes to making the coffee and sandwiches
to keep you going whilst using it. Perhaps you'd like to look into this
issue? I'm not aware of anything on the bug tracker about it.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Setting prompt in ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-24 12:52 +0200
Re: Setting prompt in ipython Laura Creighton <lac@openend.se> - 2015-05-24 13:54 +0200
Re: Setting prompt in ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-24 14:11 +0200
Re: Setting prompt in ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-24 15:07 +0200
Re: Setting prompt in ipython Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-24 14:56 +0100
Re: Setting prompt in ipython Chris Angelico <rosuav@gmail.com> - 2015-05-25 00:02 +1000
csiph-web