Skip to content

Commit 87c188e

Browse files
committed
try disabling plotly mathjax
1 parent 9a64e0c commit 87c188e

File tree

2 files changed

+101
-97
lines changed

2 files changed

+101
-97
lines changed

examples/case_studies/ssm_hurricane_tracking.ipynb

Lines changed: 85 additions & 83 deletions
Large diffs are not rendered by default.

examples/case_studies/ssm_hurricane_tracking.myst.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ We wrote the equation for $P_{t\|t}$ above using Joseph form, which is more nume
8484

8585
## Imports
8686

87+
```{code-cell} ipython3
88+
# This allows both LaTeX and plotly figures to render
89+
from IPython.display import Javascript, display
90+
91+
display(
92+
Javascript(
93+
"""
94+
window.PlotlyConfig = {
95+
MathJaxConfig: 'local',
96+
mathjax: null
97+
};
98+
"""
99+
)
100+
)
101+
```
102+
87103
```{code-cell} ipython3
88104
# Import libraries
89105
import re
@@ -120,20 +136,6 @@ from pymc_extras.statespace.utils.constants import (
120136
pio.renderers.default = "sphinx_gallery"
121137
```
122138

123-
```{code-cell} ipython3
124-
# This allows both LaTeX and plotly figures to render
125-
from IPython.display import Javascript, display
126-
127-
display(
128-
Javascript(
129-
"""
130-
window.PlotlyConfig = {MathJaxConfig: 'local'};
131-
console.log("PlotlyConfig set to use local MathJax.");
132-
"""
133-
)
134-
)
135-
```
136-
137139
## Helper Functions
138140

139141
```{code-cell} ipython3

0 commit comments

Comments
 (0)