Converted thw-docs tutorial to IPython notebook.