title: Jupyter Notebook loop cells
body: <p>I have a question, is it posible to iterate in a loop in different cells in a notebook? for instance I have this code:</p>
  
  <pre><code>for c in range(2):
  # Thetas
  thetas = np.zeros((J,I))
  it = np.nditer(thetas, flags=['multi_index'],op_flags=['writeonly'])
  while not it.finished:
      i=it.multi_index[1]
      j=it.multi_index[0]
      coefs=np.array([1-(K/(prod[j]*la[j]*firm[i])),(-K/(prod[j]*firm[i]))*(1+(1/la[j])),-K/(prod[j]*firm[i])])
      sol=np.roots(coefs)
      it[0]=np.amax((sol))
      it.iternext()
  
  # Wages
  wag=np.zeros((J,I))
  it = np.nditer(wag, flags=['multi_index'],op_flags=['writeonly'])
  while not it.finished:
      i=it.multi_index[1]
      j=it.multi_index[0]
      it[0]=prod[j]*firm[i]-(K*(1+thetas[j,i])/(la[j]*thetas[j,i]))
      it.iternext()
  </code></pre>
  
  <p>And for demonstration purposes i'd like to run the thetas code in a cell, display some results, then run the wages, display another result, and then iterate for the second time on theta and wages. Is this at all possible?</p>
  
  <p>Thanks</p>