title: Ipython Notebook: Elegant way of turning off part of cells?
body: <p>In my <code>ipython notebook</code>, there is part of cells that serves as preliminary inspection.</p>
  
  <p>Now I want to <code>turn it off</code>, since after running it I know the status of the dataset, but I also want to keep it, so other people using this notebook can have this functionality.</p>
  
  <p>How can I do it? Is there any example of doing it?</p>
  
  <ol>
  <li><p>I can <code>comment out</code> these cells, but then switching between <code>on</code> and <code>off</code> would be quite laborious. And may not be quite convinent for other people.</p></li>
  <li><p>I can abstract it into a <code>function</code>, but that itself has some methods, so the code would be quite convoluted, and may be hard to read?</p></li>
  </ol>