ppc64le/linux/: sphinx-gallery-0.19.0 metadata and description

Simple index

A Sphinx extension that builds an HTML gallery of examples from any set of Python scripts.

author_email Óscar Nájera <[email protected]>
classifiers
  • Development Status :: 4 - Beta
  • Framework :: Sphinx :: Extension
  • Intended Audience :: Developers
  • Programming Language :: Python
  • Programming Language :: Python :: 3 :: Only
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Environment :: MetaData :: IBM Python Ecosystem
description_content_type text/x-rst
dynamic license-file
license 3-clause BSD
license_file LICENSE
project_urls
  • Documentation, https://sphinx-gallery.github.io
  • Source, https://github.com/sphinx-gallery/sphinx-gallery
provides_extras show-memory
requires_dist
  • pillow
  • sphinx>=5
  • sphinxcontrib-video; extra == "animations"
  • absl-py; extra == "dev"
  • graphviz; extra == "dev"
  • intersphinx-registry; extra == "dev"
  • ipython; extra == "dev"
  • joblib; extra == "dev"
  • jupyterlite-sphinx>=0.17.1; extra == "dev"
  • lxml; extra == "dev"
  • matplotlib; extra == "dev"
  • numpy; extra == "dev"
  • packaging; extra == "dev"
  • plotly; extra == "dev"
  • pydata-sphinx-theme; extra == "dev"
  • pytest; extra == "dev"
  • pytest-coverage; extra == "dev"
  • seaborn; extra == "dev"
  • sphinxcontrib-video; extra == "dev"
  • statsmodels; extra == "dev"
  • jupyterlite-sphinx; extra == "jupyterlite"
  • joblib; extra == "parallel"
  • numpy; extra == "recommender"
  • graphviz; extra == "show-api-usage"
  • memory-profiler; extra == "show-memory"
requires_python >=3.8
File Tox results History
sphinx_gallery-0.19.0-py3-none-any.whl
Size
456 KB
Type
Python Wheel
Python
3
PyPI Conda-forge Zenodo DOI Azure CI status CircleCI status Code coverage

A Sphinx extension that builds an HTML gallery of examples from any set of Python scripts. Check out the documentation for introductions on how to use it and more…

A demo of a gallery generated by Sphinx-Gallery

Quickstart

Sphinx-Gallery can be used to generate an example gallery from .py files, for a library, as well as a stand-alone web page showcasing examples of a particular Python package, module, or class.

Let’s get started with a simple example or check out the

documentation for introductions on how to use it and more…

Install via pip

You can do a direct install via pip by using:

$ pip install sphinx-gallery

Add examples to your docs

Let’s assume simple scenario, you have a Python package with a directory structure like this:

├── doc
│   ├── conf.py
│   ├── index.rst
|   ├── make.bat
│   └── Makefile
├── my_python_module
│   ├── __init__.py
│   └── mod.py
└── examples
    ├── plot_example.py
    └── README.txt (or .rst)

Enable Sphinx-Gallery by adding the following to your doc/conf.py:

extensions = [
    ...
    'sphinx_gallery.gen_gallery',
]

# path to the examples scripts
sphinx_gallery_conf = {
    'examples_dirs': '../examples',   # path to your example scripts
    'gallery_dirs': 'auto_examples',  # path to where to save gallery generated output
}

Finally just compile your docs as usual. Sphinx-Gallery will generate reST files, adding execution outputs, and save them in auto_examples/. Add a link to auto_examples/index.rst to include the gallery in your documentation.

Contributing

You can get the latest development source from our Github repository. You need setuptools installed in your system to install Sphinx-Gallery. For example, you can do:

$ git clone https://github.com/sphinx-gallery/sphinx-gallery
$ cd sphinx-gallery
$ conda install graphviz  # if using conda, you can get graphviz this way
$ pip install -e .[dev]

Check that you are all set by running:

$ pytest sphinx_gallery

How to cite

If you would like to cite Sphinx-Gallery you can do so using our Zenodo deposit.