Sample codes for IPython notebook