[IPython-dev] Loop over a set of notebook cells?

Clare Sloggett claresloggett at gmail.com
Sat Mar 15 00:10:24 EDT 2014


On a somewhat related note - I'd really like the ability to execute cells
based on the notebook's hierarchical structure, i.e. Heading cells. I've
been looking into extending the Table of Contents plugin to add a "run this
section" option. That way I could have an Initialisation section, and
different sections for different parts of the analysis, and run only the
required bits.

So this is a bit more limited than what it sounds like you're looking for,
since you also want to be able to loop over a set, or to cut and paste.
Still, Headings do (conceptually) give you a "set" of cells and these sets
can be nested. Being able to cut-and-paste all cells in a section might be
a good way to implement what you're aiming at?


On 15/03/2014 4:39 AM, "Thomas Kluyver" <takowl at gmail.com> wrote:

> On 14 March 2014 09:46, Nikolas Tezak <ntezak at stanford.edu> wrote:
>
>> I've been thinking about this for a while as well. Although this doesn't
>> quite address looping, I think one idea might be to use cell tags to create
>> certain "run sets" of cells and then have a little widget/ui component that
>> allows for selecting and running all cells of a certain tag. So, in that
>> respect a good interface for marking/selecting multiple cells and then
>> tagging them or running them or copying them would be great.
>
>
> Tags on cells is something that we want to do - there are a lot of useful
> things that could be done with it.
>
> 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/20140315/542473d1/attachment.html>


More information about the IPython-dev mailing list