These are chat archives for ipython/ipython
%cpaste -r, it will run what you previously pasted again
print "hello world"
--on a line by itself, it returns you to IPython and executes the code you gave it
%cpaste -rwill then run
print "hello world"a second time