QuLogic / sphinx-gallery

Sphinx extension for automatic generation of an example gallery

Home Page:https://sphinx-gallery.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sphinx-Gallery

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.

A demo of a gallery generated by Sphinx-Gallery

Who uses Sphinx-Gallery

An incomplete list:

Installation

Install via pip

You can do a direct install via pip by using:

$ pip install sphinx-gallery

Sphinx-Gallery will not manage its dependencies when installing, thus you are required to install them manually. Our minimal dependencies are Sphinx >= 4 and Pillow, which we use for scaling images.

Sphinx-Gallery has also support for scraping images from packages like Matplotlib, Seaborn, and PyVista. We recommend installing system optipng binaries to reduce the file sizes of the generated PNG files.

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
$ pip install -r requirements.txt -r dev-requirements.txt
$ conda install graphviz  # if using conda, you can get graphviz this way
$ pip install -e .

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.

About

Sphinx extension for automatic generation of an example gallery

https://sphinx-gallery.readthedocs.io

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 95.6%Language:CSS 3.2%Language:Shell 0.8%Language:C++ 0.2%Language:Makefile 0.1%Language:MATLAB 0.1%Language:Julia 0.1%