[IPython-User] change prompt dynamically

Thomas Kluyver takowl@gmail....
Wed Sep 14 14:10:00 CDT 2011

On 14 September 2011 19:40, Kuznetsov Valentin <vkuznet@gmail.com> wrote:

> In ipython version < 0.11 I was able to dynamically change prompt into
> ipython session as simple as

I don't actually know the best way to do this in 0.11, but note that we're
planning to rewrite the prompt system for (hopefully) 0.12. There's some
discussion going on about how best to do this, but you'll hopefully be able
to do something like:

ip = get_ipython()
ip.prompt_manager.in_prompt = 'whatever'

Have a look at PR #507: https://github.com/ipython/ipython/pull/507

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20110914/8d575c27/attachment.html 

More information about the IPython-User mailing list