title: How to separate and run the code part of an Ipython notebook?
body: <p>I have an IPython file. I want to take all the code-parts of the Ipython file and run it separately to display all plots and figures.(All the code-part is refering to the fact that a ipython file has both markdown and code snippets and I want only code part.) How can this be done? 
  I have tried to take the code and paste it in jupyter console but it won't still display images. For example I have </p>
  
  <pre><code>from IPython.display import Image
  Image('http://jakevdp.github.com/figures/mpl_version.png')
  </code></pre>
  
  <p>It returns &lt; IPython.core.display.Image object > but not the actual image. How do I get to display the actual image? Finally, I want to implement this as a web service so that users can upload .ipynb files and get all the output plots of the python codes as output.</p>