title: Execute specific cells in jupyter notebook before main one
body: <p>Say I have a main cell in my notebook, lets call in <code>main</code>. I don't want to run a whole bunch of cells each time I use main, but I have to because <code>main</code> depends on the functions in them. </p>
  
  <p>Hence, if <code>main</code> depends on say cells <code>c1</code> and <code>c2</code> is there a special magic command or something one can place in <code>c1</code> and <code>c2</code>, that tells the notebook to run these before I run <code>main</code>. My notebooks typically contain hundreds of cells, so loading them all from the start is not really an option.</p>
  
  <p>Thanks</p>
  
  <p>PS. I am fully aware that I can take all of this out of notebooks and just import the whole lot. I specifically do not want to do that.</p>