#apply styles to notebook (rather than doing it locally # via the profile custom.css file) from IPython.core.display import HTML css_file = 'media/style.css' HTML(open(css_file, "r").read()) #some Python code range(0,20) from IPython.display import YouTubeVideo # a talk about IPython at Sage Days at U. Washington, Seattle. # Video credit: William Stein. YouTubeVideo('QTXyXuqfBLA') import matplotlib.pyplot as plt import numpy as np %matplotlib inline x = np.linspace(0, 3*np.pi, 500) plt.plot(x, np.sin(x**2)) plt.title('chirp chirp');