"Hello IPython notebook!" # Only the last statement will be shown L = ['red', 'blue', 'green', 'black', 'white'] type(L) #sorted(L) # uncomment this line to show the sorted list instead of the type # An example code cell using stuff from pylab # numpy's linspace and pi x = linspace(0, 3*pi, 500) # matplotlib's plot and title plot(x, sin(x**2)) title('A simple chirp'); # Errors lead to detailed tracebacks x = "Hello IPython!" y = 42 z = x + y # Echo the version of IPython import IPython IPython.__version__ # Help on python objects using the '?' import IPython IPython? # Using the built-in help help(IPython) # Tab completion is available IPython. # press TAB after the period from IPython.display import Image Image(filename='images/logo.png') from IPython.display import YouTubeVideo YouTubeVideo('F4rFuIb1Ie4') # Alternatively, load an image from a URL Image(url='http://octodex.github.com/images/pythocat.png')