I've got a Jupyter Notebook with a couple hundred lines of code in it, spread across about 30 cells. If I want to loop through 10 cells in the middle (e.g. using a For Loop), how do you do that? Is it even possible, or do you need to merge all the code in your loop into one cell?
Asked
Active
Viewed 2.4k times
13
-
1That's exactly right, this is a duplicate, and the answer referenced above is a better answer. – RJH2 Mar 28 '17 at 17:00
1 Answers
9
The only way I can see to do it would be to join the cells, and then put the entire thing in a for/while loop.

BluCode
- 1,097
- 7
- 16