[IPython-dev] Best approach for uploading files through the Notebook?

Fernando Perez fperez.net@gmail....
Tue Jun 26 20:31:10 CDT 2012


On Tue, Jun 26, 2012 at 6:26 PM, Carl Smith <carl.input@gmail.com> wrote:
> This is for NotebookCloud, so there's no option to just use ssh. There
> should, if there isn't already, be an easy way to chuck data into a
> notebook and have it upload onto the server. There's a few ways it
> could be done, and the user has found a workaround, but I just
> wondered what you guys thought.

Easiest solution: write a magic function, called %upload, that
triggers the javascript to invoke the browser's file upload dialog,
and then saves the files in the notebook directory.

Can be done completely client-side as a magic without any changes to
the notebook server.

Cheers,

f


More information about the IPython-dev mailing list