Bug#1081573: python-lmfit-doc: regression: absence of matplotlib code hyperlinks

James Addison jay at jp-hosting.net
Thu Sep 12 23:38:06 BST 2024


Package: python-lmfit-doc
Version: 1.2.2-3
Severity: minor
X-Debbugs-Cc: tille at debian.org

Dear Maintainer,

Some of the code examples in the HTML documentation for python-lmfit-doc
provide web hyperlinks to upstream API documentation; numpy and matplotlib
objects for example.

The matplotlib hyperlinks appear to have mostly or entirely gone missing in
version 1.2.2-3 of the package.

The 'examples/example_complex_resonator_model.html' is one file where the
problem can be readily observed, in the code example that defines a 'plot_ri'
function: the method calls on 'plt' should link to matplotlib documentation.

The cause may be an upstream bug in Sphinx or one of the extensions that it
uses to generate the code snippets, but I felt it is worth reporting here
initially.

For reference: I noticed this after attempting local builds of lmfit-py in
order to uncover any differences arising from the MPLCONFIGDIR environment
variable override in the debian/rules file.  After comparing the local builds
with-and-without that variable: it does not appear to be the cause (in fact: I
found the opposite; the hyperlinks appeared when I built with it in place, and
were absent in the output after I removed it from the build rules).

Regards,
James

[1] - https://salsa.debian.org/science-team/lmfit-py/-/merge_requests/3



More information about the debian-science-maintainers mailing list