[IPython-dev] generating input cells dynamically

Thomas Kluyver takowl at gmail.com
Fri Mar 21 13:56:30 EDT 2014

Hi Zoltán,

On 21 March 2014 10:00, Zoltán Vörös <zvoros at gmail.com> wrote:

> I have a project, where I would have to plot hundreds of data sets, and
> for various reasons, I would like to place each plot in separate cell in
> the notebook. Is there a way to do this automatically? I know what the
> input cells should contain, it is only that I don't want to execute each
> cell by hand, for each plot takes 1-2 minutes to calculate. The only thing
> I could come up with for now is that I generate a notebook with the
> required cells on the command line, load the notebook in the browser, and
> then hit "Run All", but it would be great, if it was possible in a somewhat
> more elegant way.

Once you've generated the notebook, you could use runipy to run it without
having to go through the noteboko UI: https://github.com/paulgb/runipy/

Best wishes,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140321/acbaa235/attachment.html>

More information about the IPython-dev mailing list