X Tutup
Skip to content

sphinxext.plot_directive: captions not working #2850

@andrej5elin

Description

@andrej5elin

Dear all,

when including plots in sphinx documents, like:

.. plot:: plot.py

   Caption not working!

According to documentation, this should include the caption, however
make html will fail because of a RuntimeError("plot:: directive can't have both args and content"), which is raised in line 671 of plot_directive.py.

Removing that line fixes the problem for me, but I wonder why was that restriction implemented in the first place.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup