-
Notifications
You must be signed in to change notification settings - Fork 329
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning triggered for navigation_with_keys #1539
Comments
full disclosure, the decision was taken here: #1503 (comment) I would invite @drammock and @gabalafou to the thread as they worked on the linked PR. I'm on @drammock side on this one, even though it's a small change, we inverted a parameter of our conf.py which will change the behaviour of all documentation relying on default values. What we could do is raise it only if the value is not set, letting you with the easy |
That is how it was supposed to work. Maybe that conf.py change will be enough to silence the warning; if not we should make it work that way and then release a hotfix |
In many cases we had no settings at all for the html theme. If there were a new single setting to opt out of these warnings I'd use that, otherwise this is too much of a maintenance cost for us. |
I can confirm that setting html_theme_options = {
"navigation_with_keys": False,
} in |
closing as the fix is entirely in user's |
That doesn't fix my issue, we already knew that, but it confirms that we won't use this theme. Please reconsider the policy |
This may be a total noob question, sorry if so, but why does Notebook use the I guess the thing that I don't understand here is that it seems that the theme needs a way to let users know about planned changes. But maybe it's an anti-pattern or unfriendly to CI systems to use a warning? |
We use -W to catch legitimate warnings from sphinx when something won't render correctly. Sphinx does not have this policy about warning about changing defaults from what I have seen. Unlike pytest, we don't have fine-grained control over which warnings to suppress. This is a theme, I trust the theme to have sensible defaults, and just update itself. |
fair enough, and normally we don't warn about even very major changes like the recent accessibility-inspired color and style update. But this is a noticeable UX change for those who relied on it; we thought it was exceptional and so decided to warn.
isn't the suggested change to
We do the same thing for our docs, and compare the captured warnings with a list of expected ones (there are some related to the "kitchen sink" page that we can't prevent because we don't control that page's content). You could adopt a similar strategy, and safe-list this particular warning. |
I hear you that CIs breaking across multiple projects is a big headache and if you really want to jump ship to another theme obviously I can't stop you. I'm reopening this issue because I'm willing to consider the perspective that warning here was inappropriate. We've had folks complain before about changes to private functions that we use in our Requesting @trallard @12rambau @choldgraf @jorisvandenbossche to weigh in here. |
I'm afraid that this isn't the behavior we're currently observing. Here are a couple of PRs from the cudf repo where runs in the last 24 hours are showing the warning:
This is happening despite the fact that we set |
I think having an option like "suppress_warnings" would be enough to satisfy both sets of users. The sphinx "-w" option to write to a file and post-analyze isn't ergonomic and isn't something I want to do across all the jupyter repos. |
It seems there are 2 things to update before releasing a hotfix here:
@drammock I'm happy with both of them.
@blink1073, thanks a lot for your trust but it seems many of our users are taking advantage of the customization options, and in previous releases we have received complaints for making changes in the default behaviors without notifying our users (thus the deprecation process). few examples:
|
There appears to be a bug in the latest release of pydata-sphinx theme where a warning that was intended to be thrown conditionally is appearing unconditionally in our builds, triggering a doc build failure because we build with `-W`. See pydata/pydata-sphinx-theme#1539 for more information. We should be OK to simply avoid the current version for now. If the next release is a minor release then the warning will be removed and we can automatically upgrade. If they have another patch release then we can reevaluate the pinning, but the current pinning seems like the most likely to require no additional work going forward. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) URL: #14332
See pydata/pydata-sphinx-theme#1539 for additional context.
See pydata/pydata-sphinx-theme#1539 and rapidsai/cudf#14332 for additional context. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Jake Awe (https://github.com/AyodeAwe) URL: #1289
See pydata/pydata-sphinx-theme#1539 for additional context. Authors: - Simon Adorf (https://github.com/csadorf) Approvers: - William Hicks (https://github.com/wphicks) - AJ Schmidt (https://github.com/ajschmidt8) URL: #5629
@12rambau that sounds like a fair summary to me, thank you! Perhaps more precisely, we'd like a way to silence this specific class of warning (changing default or behavior). Although most other things that we'd care about should probably be errors not warnings. |
@vyasr it looks like that line was added to your Are you certain that rapidsai/cudf#14323 was already merged into the base branch before those PR runs for rapidsai/cudf#14328 and rapidsai/cudf#14329 happened? At least on rapidsai/cudf#14329 the doc-build CI is now passing: https://github.com/rapidsai/cudf/actions/runs/6654117636/job/18083387254?pr=14329 |
I'm not sure that I understand the nature of this issue perfectly, but I'll just note that I think it's not a good idea to raise Sphinx warnings just as a way of giving the user notifications (at least anything in a way that will fail with |
@drammock I apologize, you're totally right and I missed that it had been added in the interim. It looks like we are seeing the correct behavior when the key is explicitly set. Thanks! |
False was the default value for navigation_with_keys. However, in version 0.14.2 of pydata-sphinx-theme, this default was removed and a warning was added that would be emitted whenever navigation_with_keys was not set. Because of the "SPHINXOPTS = -W" configuration in tox.ini, all warnings are promoted to an error. Therefore, it's necesary to set this value. I have set it to the default value explicitly. Please see the following GitHub comments for context. * pydata/pydata-sphinx-theme#1539 * pydata/pydata-sphinx-theme#987 (comment)
False was the default value for navigation_with_keys. However, in version 0.14.2 of pydata-sphinx-theme, this default was removed and a warning was added that would be emitted whenever navigation_with_keys was not set. Because of the "SPHINXOPTS = -W" configuration in tox.ini, all warnings are promoted to an error. Therefore, it's necesary to set this value. I have set it to the default value explicitly. Please see the following GitHub comments for context. * pydata/pydata-sphinx-theme#1539 * pydata/pydata-sphinx-theme#987 (comment)
False was the default value for navigation_with_keys. However, in version 0.14.2 of pydata-sphinx-theme, this default was removed and a warning was added that would be emitted whenever navigation_with_keys was not set. Because of the "SPHINXOPTS = -W" configuration in tox.ini, all warnings are promoted to an error. Therefore, it's necesary to set this value. I have set it to the default value explicitly. Please see the following GitHub comments for context. * pydata/pydata-sphinx-theme#1539 * pydata/pydata-sphinx-theme#987 (comment)
False was the default value for navigation_with_keys. However, in version 0.14.2 of pydata-sphinx-theme, this default was removed and a warning was added that would be emitted whenever navigation_with_keys was not set. Because of the "SPHINXOPTS = -W" configuration in tox.ini, all warnings are promoted to an error. Therefore, it's necesary to set this value. I have set it to the default value explicitly. Please see the following GitHub comments for context. * pydata/pydata-sphinx-theme#1539 * pydata/pydata-sphinx-theme#987 (comment)
ok, #1542 adds a new config var |
False was the default value for navigation_with_keys. However, in version 0.14.2 of pydata-sphinx-theme, this default was removed and a warning was added that would be emitted whenever navigation_with_keys was not set. Because of the "SPHINXOPTS = -W" configuration in tox.ini, all warnings are promoted to an error. Therefore, it's necesary to set this value. I have set it to the default value explicitly. Please see the following GitHub comments for context. * pydata/pydata-sphinx-theme#1539 * pydata/pydata-sphinx-theme#987 (comment)
False was the default value for navigation_with_keys. However, in version 0.14.2 of pydata-sphinx-theme, this default was removed and a warning was added that would be emitted whenever navigation_with_keys was not set. Because of the "SPHINXOPTS = -W" configuration in tox.ini, all warnings are promoted to an error. Therefore, it's necesary to set this value. I have set it to the default value explicitly. Please see the following GitHub comments for context. * pydata/pydata-sphinx-theme#1539 * pydata/pydata-sphinx-theme#987 (comment)
In many of the jupyter repos, we use
pydata_sphinx_theme
. All of our docs builds have started failing with 0.14.2 with the warning about default value ofnavigation_with_keys
changing. Would it be possible to not trigger that warning? This seems like a lot of additional work for such a benign change. If this is going to be the policy ofpydata_sphinx_theme
in general, I'd like to know that as well so I can switch themes across the board.https://github.com/jupyter/notebook/actions/runs/6634029880/job/18038165438
The text was updated successfully, but these errors were encountered: