More generally, there is %%script <x>, which executes the cell using <x>.
0: http://ipython.readthedocs.io/en/stable/interactive/magics.h...