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

Antonino Ingargiola tritemio at gmail.com
Wed Oct 8 19:33:51 EDT 2014

But what do you think about using real python lists with a conventional
names or with a "magic" comment (or even a cell magic?) from which the
values are extracted. This would not require building any custom GUI.

The template notebook will have a cell like this:

    ipyparams_datafile = [...]

that is replaced in the executed notebook by a cell like this:

    datafile = ".."

It may be a little hackish but it is extremely simple and would already be
a huge improvement over the current situation.


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

> On 8 October 2014 15:14, Antonino Ingargiola <tritemio at gmail.com> wrote:
>> My suggestion however was different. I was thinking of saving the list of
>> parameter values in the "template notebook" so that it will contain all the
>> information about the batch processing. The "runner", in the most basic
>> mode, would just execute the notebook iterating through the specified
>> values.
> I see what you mean. That's an interesting idea, and I'll keep it in the
> back of my mind, but it's not something I want to tackle at the moment. It
> would certainly be possible to store the value ranges in notebook metadata,
> and generalise the example I gave to use that instead of hardcoded lists.
> Designing a good UI for writing the notebook metadata might be trickier,
> but you could do that as an nbextension.
> 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/d9aa0d0d/attachment.html>

More information about the IPython-dev mailing list