-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Broken" gallery examples should still link to the code #1217
Comments
If you look at https://sphinx-gallery.github.io/stable/auto_examples/index.html#no-image-output-examples it links to (by a clickable "BROKEN" image) this url: which has the traceback. There is even a second example with a SyntaxError So the machinery is there to produce the sorts of outputs you're looking for. So why does it work for us and not for you? I'm guessing it could be because these failures are listed in our Lines 452 to 454 in f0523c2
If that is indeed the case, then I don't see any reason why we shouldn't also render the unexpectedly failing examples as you suggest. PR welcome to try adding this. (If there is a good reason not to render the unexpectedly failing examples in some cases, we can add a new |
Thanks @larsoner! Very insightful and thorough response. I'll wait for others to chime in on "If there is a good reason not to render the unexpectedly failing examples in some cases", then I might try my hand at that PR. |
I'm not sure whether this is a bug or a feature request or me not understanding our build or configuration, but please close if it's invalid. 馃檹
Over on the napari gallery, we recently noticed a broken example, which results in the "Broken" thumbnail:
You can see a recent Circle-CI build here.
My issue is that even though the hover works and turns into a link cursor, the thumbnail now links to nothing at all, which makes the gallery itself feel broken. Additionally, when exploring the issue it would be nice to actually quickly look at the code right there, instead of having to navigate to the right spot in the repo.
And, in this case, since the code runs normally when run as a Python script but not when run in the gallery (this is our fault, not sphinx-gallery's 馃槄), I had to go hunt down the traceback in the build logs.
My proposal is that sphinx-gallery could render a page containing the full script, together with the captured traceback from the build at the bottom.
Is this something that could be considered?
Thanks!
The text was updated successfully, but these errors were encountered: