-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Wrong Sphinx version detection for jsmath #21499
Comments
Hi @Mte90 thank you for the feedback! I think I was able to reproduce this 👍 So, I think the Disabling it triggers the error indeed. From my understanding seems like your suggested fix make sense but, just in case, what do you think @ccordoba12 ? |
I think the problem is the I think a proper solution would be to rewrite the if math:
if sphinx_version < "1.1":
extensions = ['sphinx.ext.jsmath']
else:
extensions = ['sphinx.ext.mathjax'] That way we'd really avoid loading the Sphinx extension to render math if the user requests not to. @dalthviz or @Mte90, could you check if that works for you when enabling/disabling the |
Checked and that works 👍 There is a missing thing though which is to initialize extensions = []
if math:
if sphinx_version < "1.1":
extensions = ['sphinx.ext.jsmath']
else:
extensions = ['sphinx.ext.mathjax'] Checked manually inspecting
|
PR updated :-) |
Thanks @Mte90! |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I am getting an error everytime for the help panel:
Looking at the code the jsmath package is not updated since 2019 and I have sphinx 7.2.6.
Reading the code on this check that use jsmath should be for 1.1 < releases.
spyder/spyder/plugins/help/utils/conf.py
Line 40 in 2429caa
Change the line 40 in that file to:
Fix the issue (in my case the
math
variable is false).What is the expected output? What do you see instead?
Versions
Dependencies
The text was updated successfully, but these errors were encountered: