DOC: Writing the discrete HMM IPython notebook