Skip to content

Commit b2e5cc9

Browse files
committed
fix: correct exception handling for package version retrieval
1 parent 7974edd commit b2e5cc9

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGELOG.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ New Features
2626
and supporting all plot types (:meth:`~anyplotlib.Axes.imshow`,
2727
:meth:`~anyplotlib.Axes.plot`, :meth:`~anyplotlib.Axes.pcolormesh`, etc.)
2828
as well as interactive minimise, maximise, and restore states. (`#6 <https://github.com/CSSFrancis/anyplotlib/pull/6>`_)
29-
- * Added ``anyplotlib.sphinx_anywidget`` Sphinx extension for interactive,
30-
Pyodide-powered figures in documentation (``.. anywidget-figure::`` directive,
31-
automatic wheel building, Sphinx Gallery integration).
29+
- Added ``anyplotlib.sphinx_anywidget`` Sphinx extension for interactive,
30+
Pyodide-powered figures in documentation (``.. anywidget-figure::`` directive,
31+
automatic wheel building, Sphinx Gallery integration), plus several supporting
32+
improvements (`#9 <https://github.com/CSSFrancis/anyplotlib/pull/9>`_):
33+
3234
* Improved widget–parent page postMessage communication bridge.
3335
* Made colormap LUT construction more robust against unknown colormap names.
3436
* Subplot panels now use deterministic IDs.
35-
* Added end-to-end test for the Playwright thumbnail scraper. (`#9 <https://github.com/CSSFrancis/anyplotlib/pull/9>`_)
37+
* Added an end-to-end test for the Playwright thumbnail scraper.
3638
- 3-D ``scatter3d`` and ``voxels`` now render on the GPU via WebGPU when
3739
available, as a transparent progressive enhancement: a ``gpu="auto"`` kwarg
3840
(default) uses instanced WebGPU rendering above ~20k points / ~8k voxels and

anyplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
try:
44
__version__ = _pkg_version("anyplotlib")
5-
except PackageNotFoundError: # not installed (e.g. source tree on sys.path)
5+
except PackageNotFoundError: # not installed (e.g. source tree on sys.path)
66
__version__ = "0.0.0+unknown"
77

88
from anyplotlib.figure import Figure, GridSpec, SubplotSpec, subplots

0 commit comments

Comments
 (0)