Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Add :shows-source-link: option to Sphinx plot directive#24215
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
9c5a5dc
to8fae504
CompareUh oh!
There was an error while loading.Please reload this page.
MikhailRyazanov commentedOct 18, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Just a remark that source links are currently broken for |
f6fedff
toccb1229
CompareAny update on this? |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
timhoffm left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I was held up by#24215 (comment). But now realized that we're not hooking deeper into that functionality for execution. We only rely on it in tests. - Therefore, the worst that can happen is that our tests become broken and we have to come up with a better test, but the functionality on the user side is not affect.
This is good to go, modulo my comment on the test.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
0379f0d
toa126736
Comparea126736
to3f011be
ComparePrecommit sees trailing whitespace |
I pushed one more little change to fix this error from the CI pipeline:
|
That's fixed now. Should be ready to go. |
@lpsinger do you want to squash/rebase or should I? |
The Sphinx plot directive (`.. plot::`) now supports a`:show-source-link` option to show or hide the link to the sourcefor each plot. The default is set using the`plot_html_show_source_link` variable in `conf.py` (which itselfdefaults to True).
Done. |
2fea052
tod58fc21
CompareThanks@lpsinger |
Thank you! |
Uh oh!
There was an error while loading.Please reload this page.
The Sphinx plot directive (
.. plot::
) now supports a:show-source-link
option to show or hide the link to the source for each plot. The default is set using theplot_html_show_source_link
variable inconf.py
(which itself defaults to True).PR Summary
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).