DOC: Clarify SVG hyperlink behavior in gallery hyperlinks example#31497
Open
jayaprajapatii wants to merge 1 commit intomatplotlib:mainfrom
Open
DOC: Clarify SVG hyperlink behavior in gallery hyperlinks example#31497jayaprajapatii wants to merge 1 commit intomatplotlib:mainfrom
jayaprajapatii wants to merge 1 commit intomatplotlib:mainfrom
Conversation
timhoffm
requested changes
Apr 13, 2026
Member
timhoffm
left a comment
There was a problem hiding this comment.
This is not the intended solution for #31452
Instead, we want to show the SVG images. There are to possible approaches
- the difficult one: make sphinx-gallery (optionally) support creating SVG output.
- the hacked one: render the SVG image locally and add it as a static image to the example.
Contributor
Author
|
@timhoffm Thanks for the clarification! I understand that the goal is to actually show the SVG output rather than just explain the behavior. I’ll work on implementing the second approach by rendering the SVG locally and adding it as a static image to the example. |
timhoffm
previously requested changes
Apr 15, 2026
Closes #31452
Summary
Show the generated SVG outputs in the hyperlinks example by embedding them directly in the documentation.
Problem
The example generated SVG files with hyperlinks, but they were not visible or interactive in the documentation, making the behavior unclear.
Solution
The example still generates SVG files as before.
The documentation now embeds these SVGs using HTML (
<object>), so that the hyperlinks inside the SVG remain interactive.Impact