[IPython-User] change prompt dynamically
Wed Sep 14 14:10:00 CDT 2011
On 14 September 2011 19:40, Kuznetsov Valentin <firstname.lastname@example.org> 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...
More information about the IPython-User