i am wondering how to configure Ipython so that it adds the run time of the last command in milliseconds/seconds to the right command prompt. This could be done in ZSH/Bash shells as illustrated here https://coderwall.com/p/kmchbw
How should I go about doing this?
For those who are interested, please refer to this issue opened in Github.
https://github.com/ipython/ipython/issues/5237
This is a code snippet that times each statement and prints it right adjusted before the next prompt, and also makes the value accessible by name 'texc'.
To print it above the in-prompt instead, remove the print, and in ipython_config.py set:
or in the same file (startup.py) use