import os if os.path.exists('nbconvert'): print "already have nbconvert" else: print "cloning nbconvert..." !git clone --quiet git://github.com/ipython/nbconvert %pylab inline x = linspace(-1,1) plot(sin(10*x),x) plot(x,sin(10*x)) from IPython.display import display, Javascript display(Javascript("IPython.notebook.save_notebook()")) !python nbconvert/nbconvert.py -f html "staticHTML.ipynb"