move ipython directive to docs