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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to