Revert "swap doc and ipython"

This reverts commit 53ba4638a5d18cd5ac8c005d99dc361339042c16.