DOC: Update after refactor. Use ipython directive.

The code is run and the summary is displayed.