from IPython.nbformat import current with open('StrataIPythonSlides.ipynb') as f: nb = current.read(f,'json') nb.worksheets[0].cells[0:5] %pylab inline plot(rand(50)) %%bash echo "Hi there Strata!" from IPython.display import HTML HTML(""" """)