File tree Expand file tree Collapse file tree 7 files changed +10
-7
lines changed Expand file tree Collapse file tree 7 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11"""
22garbo
33"""
4+
45from mpl_playback .record import record_file
56
67# record_file("dynamic.py", "fig")
Original file line number Diff line number Diff line change 77so the ``mpl_playback`` sphinx-gallery scraper will be used to generate a gif
88to embed in the gallery. Contrast this with :doc:`/gallery/static`
99"""
10+
1011import matplotlib .pyplot as plt
1112import numpy as np
1213from matplotlib .widgets import Button , Slider
Original file line number Diff line number Diff line change 99``record_file("multifig.py", ["slider_fig", "fig"])``
1010
1111"""
12+
1213import matplotlib .pyplot as plt
1314import numpy as np
1415from matplotlib .widgets import Slider
Original file line number Diff line number Diff line change 77does not have an associated playback file, so the scraper falls back to
88the sphinx-gallery matplotlib scraper.
99"""
10+
1011import matplotlib .pyplot as plt
1112import numpy as np
1213from matplotlib .widgets import Button , Slider
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import json
4+ from contextlib import contextmanager
45from pathlib import Path
56from typing import Literal
67from unittest import mock
7- from contextlib import contextmanager
88
99import matplotlib
1010import numpy as np
Original file line number Diff line number Diff line change 22file heavily based on/taken from the sphinx-gallery version
33https://github.com/sphinx-gallery/sphinx-gallery/blob/ecd399e2e60557875d9312a6f5f8dbe4d0dd7a0e/sphinx_gallery/scrapers.py
44"""
5+
56from pathlib import Path
67from warnings import filterwarnings
78
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ url = https://github.com/ianhi/mpl-playback
77author = Ian Hunt-Isaak
8899license = BSD-3-Clause
10- license_file = LICENSE/LICENSE
10+ license_files = LICENSE/LICENSE
1111classifiers =
1212 Framework :: Matplotlib
1313 Intended Audience :: Developers
@@ -17,8 +17,6 @@ classifiers =
1717 Programming Language :: Python
1818 Programming Language :: Python :: 3
1919 Programming Language :: Python :: 3 :: Only
20- Programming Language :: Python :: 3.8
21- Programming Language :: Python :: 3.9
2220download_url = https://github.com/ianhi/mpl-playback
2321keywords = matplotlib, gif
2422project_urls =
@@ -29,15 +27,15 @@ project_urls =
2927packages = find:
3028install_requires =
3129 matplotlib>=3.3
32- python_requires = >=3.8
30+ python_requires = >=3.9
3331
3432[options.extras_require]
3533docs =
3634 Sphinx>=1.5
3735 furo
38- myst_nb
36+ myst-nb
3937 sphinx-copybutton
40- sphinx_gallery
38+ sphinx-gallery
4139
4240[options.package_data]
4341* = *.pyi, py.typed
You can’t perform that action at this time.
0 commit comments