[IPython-dev] Best approach for uploading files through the Notebook?
Wed Jun 27 16:42:08 CDT 2012
Thanks Brian. That's perfect. Nice one.
On Jun 27, 2012 9:21 PM, "Brian Granger" <email@example.com> wrote:
> Let's say you want to create an %upload magic for this purpose.
> 1. First create a magic function using this approach:
> 2. Your magic function should do something like this:
> 3. Then you need to write the JS code to open the file browser, read
> the file and send it back to the kernel using kernel.execute.
> On Wed, Jun 27, 2012 at 1:14 PM, Carl Smith <firstname.lastname@example.org> wrote:
> > I want to have a go at doing what Matthius proposed, but need a few
> > pointers. I know I can use IPython.notebook.kernel.execute in the
> Yep, basically.
> > I also don't know how to get the kernel to channel data back to the
> > can't find any example code that covers it. I read somewhere that it
> > required some changes to the Notebook, and there was a PR for this, is
> > this still true, or does the current dev version support this stuff
> > out the box?
> The dev version supports everything you need.
> > Thanks Matthius for your help on this issue, and to everyone on the
> > list for your patience, I do appreciate it very much.
> > Carl
> > _______________________________________________
> > IPython-dev mailing list
> > IPythonemail@example.com
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> firstname.lastname@example.org and email@example.com
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev