[IPython-dev] IPython prompt delay

Fernando Perez Fernando.Perez at colorado.edu
Tue Nov 29 15:08:51 EST 2005


Frédéric Mantegazza wrote:
> Hello Ferndando,
> 
> Is possible to add a short fixed delay before the prompt is printed again, 
> after some code has been executed ? Where can I add it in the 0.6.15 
> version code ?

The prompt system is fully dynamic, so the easiest way is to insert a 
time.sleep() call into your prompt :)

Alternatively, you can override the prompt's display() method, but that's a 
little bit more work.

Cheers,

f




More information about the IPython-dev mailing list