Execute IPython notebook cell from python script
<p>In the IPython notebook, you can execute an outside script, say <code>test.py</code>, using the run magic:</p>

<pre><code>%run test.py
</code></pre>

<p>Is there a way to do the opposite, i.e. given an IPython notebook, accessing and then running a particular cell inside it from a python script?</p>