how to run jupyter notebook from 5th cell to 100th cell, without running other part of the notebook?
<p>Say I have a jupyter nootebook with 200 cells.</p>

<p>how to run from 5th cell to 100th cell, without running other part of the notebook?</p>

<p>Now I commend out 101th-200th and 1st-4th cell. I'm sure it is not the best practise.</p>

<p>One cannot just run cells 5 thru 100 easily with the Jupyter notebook but there are a few options. The first is just selecting each cell and running <em>Merge Cell Above</em> from the edit menu then just running the new cell. The second, and best way I've found to do this is:</p>

<ol>
<li>First select the top cells to be ignored (or bottom if there are less on the bottom) and change the <em>Cell Type</em> to <em>Raw NBConvert</em> to prevent IPython from interpreting it.</li>
</ol>

<p><a href="http://i.stack.imgur.com/shtyk.png" rel="nofollow"><img src="http://i.stack.imgur.com/shtyk.png" alt="jupyter notebook menu Cell-&gt;Cell Type-&gt;Raw NB"></a></p>

<ol start="2">
<li>Go to the cell after the one you want to run and select <em>Run All Above</em> (or below if less there).</li>
</ol>

<p><a href="http://i.stack.imgur.com/U8eHM.png" rel="nofollow"><img src="http://i.stack.imgur.com/U8eHM.png" alt="menu Cell-&gt;Run All Above"></a></p>

<p>Now you've only run those middle cells and can just go back and reset the cell type to code (instead of having to comment and then un-comment) and keep going.</p>

<p>* If you are using NBViewer you can <a href="http://stackoverflow.com/questions/27934885/how-to-hide-code-from-cells-in-ipython-notebook-visualized-with-nbviewer">hide the code</a> or just set it to <em>Markdown</em></p>

python jupyter