swap doc and ipython