Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: Commented Out Code in Downloadable Examples for Toolkits Tutorials #25582

Closed
@Higgs32584

Description

@Higgs32584

Documentation Link

https://matplotlib.org/stable/tutorials/toolkits/index.html

Problem

All the code is commented out in all three downloadable python examples from toolkits. When you download the files, either the .py or the .ipynb, built from each separate .py file(i.e. axes_grid.py and axes_grid.ipynb are built from the same code), all the code is commented out in each example.

Suggested improvement

It is suggested that the files referenced be rewritten as *.rst files. This would eliminate the need for download links and instead direct users to the individual gallery examples if they wish to download the code. It should be noted that the code in the files is not written in the format of a sphinx-gallery py file, but rather as python comments translated from bare rst. Therefore, none of the code is executed in sphinx-gallery or using the plot directive, and the figures are made in the examples gallery and simply linked to from the documentation. Additionally, it will be necessary to manually create the index.rst file if this solution is implemented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions