Repository navigation
docs: render math in the discrete event simulation tutorials - #4058
Merged
Merged
Conversation
|
Performance benchmarks:
|
dietcoke-17
approved these changes
Nov 9, 2026
dietcoke-17
left a comment
Contributor
There was a problem hiding this comment.
good fix lgtm fine and well documented
quaquel
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Math in the tutorials (e.g. https://mesa.readthedocs.io/latest/tutorials/11_discrete_event_simulation.html) is shown as raw
$$...$$text instead of being rendered.Cause
docs/conf.pydoesn't enable MyST'sdollarmathextension.\\frac,\\rho), which would still break after enabling math.$characters, so each needs a blank line above it.Changes
myst_enable_extensions = ["dollarmath"]indocs/conf.py.Testing
Built the docs locally with
python -m sphinx -b html -D nb_execution_mode=off . _buildand checked tutorials 11 and 12 in the browser: formulas render and no stray$is left. No other docs page contains$outside code, so nothing else is affected.Screenshots
Tutorial 12
Before Fix

After Fix

Tutorial 11
Before Fix

After Fix
