On 28 April 2012 00:12, Paul Ivanov <pivanov314@gmail.com> wrote: > What about just using this: > > get_ipython().set_next_input(_i) It should be possible with a magic command: %recall 42