[IPython-dev] Loop over a set of notebook cells?
ntezak at stanford.edu
Fri Mar 14 12:46:29 EDT 2014
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.
On Mar 14, 2014, at 9:35 AM, Patrick Surry <patrick.surry at gmail.com> wrote:
> A common pattern for me is to do some data analysis w/ tables and plots via a sequence of cells in a notebook. Then I want to come back and repeat the same analysis for a (small number of) different versions or subsets of the same dataset.
> There's a related question on stackoverflow
> I could save the whole notebook and run it from the command-line programmatically, but that breaks the interactive/interactive approach (e.g. when one of my variants ends up going down a slightly different track).
> Or I could reorganize the notebook so it does everything in one huge cell but that makes multiple plots and tables challenging.
> Feels like I want some looping magic to loop over the next N cells, or at least some kind of block copy & paste or something?
> Am I missing something?
> IPython-dev mailing list
> IPython-dev at scipy.org
More information about the IPython-dev