[IPython-dev] Push cell contents to the notebook

Thomas Kluyver takowl@gmail....
Fri Oct 5 17:08:17 CDT 2012


On 5 October 2012 22:31, Matthew Turk <matthewturk@gmail.com> wrote:
> Is there a way to push cell contents to a notebook?  (Without
> executing them.)  For instance, this would be useful for grabbing a
> script from a pastebin and appending it as an additional cell.

I think what you're after is the %load magic command. You can do this:

%load http://example.com/12345/foo.py

It also works with local files.

Thomas


More information about the IPython-dev mailing list