Add demo for doctest in ipython notebook