Setting prompt in ipython
Cecil Westerhof
Cecil at decebal.nl
Sun May 24 09:07:34 EDT 2015
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. ;-)
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the Python-list
mailing list