MAINT: Use ip_directive shipped with IPython. Closes #1428.
DOC: Make optional IPython dependency explicit