CLN: add clarifying comment to ipython_directive.py
BLD/DOC: add context info on exception during sphinx run
Merge pull request #6075 from y-p/PR_ipython_directive_context

Pr ipython directive context