Revert "move ipython directive to docs"

This reverts commit 6e5de6033101b34f237fd140982e67a33837619f.
move ipython directive to docs