DOC: Update after refactor. Use ipython directive.