from IPython.core.display import HTML css_file = './example.css' HTML(open(css_file, "r").read()) # This is a code cell made up of Python comments # We can execute it by clicking on it with the mouse # then clicking the "Run Cell" button # A comment is a pretty boring piece of code # This code cell generates "Hello, World" when executed print "Hello, World" # Code cells can also generate graphical output %matplotlib inline import matplotlib matplotlib.pyplot.hist([0, 1, 2, 2, 3, 3, 3, 4, 4, 4, 10]); x = 0 print x x += 1 print x from IPython.display import YouTubeVideo YouTubeVideo('vW_DRAJ0dtc') %matplotlib inline %whos %%timeit import numpy as np np.sum(np.random.rand(1000)) !ls x = !ls print x