[IPython-dev] Nbparameterise: simple forms for notebook input

Antonino Ingargiola tritemio at gmail.com
Wed Oct 8 17:08:27 EDT 2014


This is an interesting project, thanks Thomas!

I'm using runipy to run a notebook (template notebook) on several data
files in batch. I have (what I call) a "master-notebook" that calls the
"template notebook" several times setting an environment variable to a
different value each time. Each executed notebook is saved to a different
file, leaving a trail of the computation.This done for the software of a
publication, but I think is quite a common pattern (in terms of needs).

What I have done is completely custom (but straightforward). Would be nice
if nbparameterise could standardize a way to specify a "list" of values for
a variable so the notebook can be executed in batch mode, saving the output
for each execution. Saving in notebook format is somewhat diff-safe. What
about HTML? I suspect it may be a little more tricky to diff...

Thanks,
Antonio

On Wed, Oct 8, 2014 at 1:41 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 8 October 2014 13:21, Matthias BUSSONNIER <bussonniermatthias at gmail.com
> > wrote:
>
>> I think runipy already have such a feature, but I might have
>> misunderstood :
>>
>
> Kind of, but an important part of this is finding what variables can be
> filled in, and providing a form for them. And the rendered notebooks
> contain the variable definitions, so you can easily see what the input was.
>
> > Maybe you can share part of the code.
>
> If I'm understanding it correctly, there shouldn't be any code in runipy
> to achieve that: all you're doing is setting environment variables before
> you run a notebook, and then reading them in your code. That will work so
> long as runipy doesn't clear those environment variables.
>
> Thomas
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141008/a9336ded/attachment.html>


More information about the IPython-dev mailing list