Move code samples into IPython notebooks
Clear output from chapter 3 notebooks