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

Brian Granger ellisonbg at gmail.com
Tue Jun 26 21:58:28 EDT 2012

On Tue, Jun 26, 2012 at 6:31 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> On Tue, Jun 26, 2012 at 6:26 PM, Carl Smith <carl.input at 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.

But saving the file requires a server side handler.  We would have to
make changes to both sides to do this.

> Can be done completely client-side as a magic without any changes to
> the notebook server.
> Cheers,
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com

More information about the IPython-dev mailing list