This cookbook is now available a a tutorial using jupyter on the tutorial section.