Skip to content

Commit

Permalink
Merge pull request #21518 from Mte90/patch-1
Browse files Browse the repository at this point in the history
PR: Fix not displaying math equations in the Help pane
  • Loading branch information
dalthviz authored Nov 14, 2023
2 parents e358375 + 9e9e1a2 commit df566f1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions spyder/plugins/help/utils/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@
# We need jsmath to get pretty plain-text latex in docstrings
math = CONF.get('help', 'math', '')

if sphinx_version < "1.1" or not math:
extensions = ['sphinx.ext.jsmath']
else:
extensions = ['sphinx.ext.mathjax']
extensions = []

if math:
if sphinx_version < "1.1":
extensions = ['sphinx.ext.jsmath']
else:
extensions = ['sphinx.ext.mathjax']

# For scipy and matplotlib docstrings, which need this extension to
# be rendered correctly. See spyder-ide/spyder#1138.
Expand Down

0 comments on commit df566f1

Please sign in to comment.