Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.048 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'skip:\\ 10': 0.07; 'issue?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'laura': 0.18; ';-)': 0.18; 'language': 0.19; '>>>': 0.20; 'tracker': 0.20; 'lawrence': 0.22; '2015': 0.23; 'tried': 0.24; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'url:edu': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; "i'm": 0.29; 'cest': 0.29; 'pep': 0.29; 'there.': 0.30; 'language.': 0.32; 'file': 0.34; 'lists': 0.34; 'useful': 0.35; 'to:addr:python- list': 0.35; 'whilst': 0.35; 'should': 0.37; 'subject:: ': 0.37; 'received:org': 0.38; 'skip:p 20': 0.38; 'things': 0.39; 'to:addr:python.org': 0.39; 'mark': 0.40; 'your': 0.60; 'address': 0.61; 'making': 0.64; 'our': 0.64; 'charset:windows-1252': 0.65; 'url:0': 0.66; 'url:4': 0.70; 'sunday': 0.72; 'prompt': 0.79; 'cecil': 0.84; 'coffee': 0.84; 'contemplate': 0.84; 'pythonistas,': 0.84; 'schreef': 0.84; 'westerhof': 0.84; 'westerhof:': 0.84; 'subject:Setting': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Setting prompt in ipython Date: Sun, 24 May 2015 14:56:01 +0100 References: <87siamnt6r.fsf@Equus.decebal.nl> <87lhgenpj8.fsf@Equus.decebal.nl> <87h9r2nmy1.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-19-188-215.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <87h9r2nmy1.fsf@Equus.decebal.nl> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432475784 news.xs4all.nl 2919 [2001:888:2000:d::a6]:34469 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91182 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