[IPython-dev] running/getting output into a new programmatically-generated notebook
Thomas Kluyver
takowl at gmail.com
Wed Mar 18 14:17:08 EDT 2015
On 18 March 2015 at 11:13, Ana Nelson <ana at ananelson.com> wrote:
> It wanted a resources argument, an empty dict seems to work.
>
> ExecutePreprocessor().preprocess(nb, {})
>
Looking at the code, you may want to pass it {'metadata': {'path': nbPath}}
- that will run the kernel with the cwd set to the directory containing the
notebook.
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150318/61cad20b/attachment.html>
More information about the IPython-dev
mailing list