%config PromptManager
Cecil Westerhof
Cecil at decebal.nl
Wed Sep 14 04:30:39 EDT 2016
In an ipy-file I have:
%config PromptManager.in_template = r'[{time.strftime("%a, %d %b %T")} \u@\h:\Y1]\nIn [\#]: '
This works for ipython2, but gets ipython3 in an endless loop. At the
moment I solved it with:
if sys.version_info.major != 3:
%config PromptManager.in_template = r'[{time.strftime("%a, %d %b %T")} \u@\h:\Y1]\nIn [\#]: '
But is there a way to do it both for ipython2 and ipython3?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the Python-list
mailing list