Fix erroneous nesting of equation structures in pymc_overview notebook#8299
Fix erroneous nesting of equation structures in pymc_overview notebook#8299gordonkoehn wants to merge 1 commit into
Conversation
|
|
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the PyMC overview notebook’s explanation of a NUTS-friendly reparameterization by adjusting the LaTeX formatting around an align* block.
Changes:
- Removed the surrounding
$$ ... $$display-math delimiters around a LaTeXalign*environment in a markdown cell.
Comments suppressed due to low confidence (1)
docs/source/learn/core_notebooks/pymc_overview.ipynb:1
- The
align*environment must be in math mode to render correctly (e.g., via MathJax in notebooks / myst-nb). Removing the surrounding$$ ... $$likely makes the equation render as plain text or fail to render. Please wrap this block in display-math delimiters again (either$$ ... $$or\\[ ... \\]).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Remove `$$` delimiters wrapping `\begin{align*}...\end{align*}` block
in the reparameterization section. The `align*` environment is already
a display math environment, so the extra `$$` causes MathJax to report
"Erroneous nesting of equation structures" instead of rendering the
equation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
82f31e3 to
86f8cbb
Compare
Documentation build overview
3 files changed± glossary.html± contributing/jupyter_style.html± learn/core_notebooks/pymc_overview.html |

Summary
$$delimiters wrapping\begin{align*}...\end{align*}in the reparameterization section of the "Introductory Overview of PyMC" notebook$$...\begin{align*}...\end{align*}...$$into\[\begin{split}\begin{align*}...\end{align*}\end{split}\]— triple-nesting display math environments, which MathJax 4 rejects as "Erroneous nesting of equation structures"\begin{align*}without$$avoids the extra wrapping and renders correctlyRendering issue
The equation after "Finally, to allow the NUTS sampler to sample the β_i more efficiently, we will re-parameterize it as follows:" shows an error on the live docs.
Before (broken — live PyMC docs)
After (fixed — local MathJax 4 verification)
Test plan
🤖 Generated with Claude Code