Open
Description
The ipython
directive for Sphinx provided by IPython.sphinxext.ipython_directive
executes its code block at the parsing stage. As a result, even if an ipython
directive is surrounded by an only
or ifconfig
directive with a false-y condition, the code block is still executed. I have posted a minimum working example for this issue that includes a Sphinx configuration file and a reStructuredText file to reproduce the problem.