Skip to content

ipython Sphinx directive executes code when excluded by only, ifconfig #9339

Open
@cgranade

Description

@cgranade

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions