Skip to content

Commit 9a64e0c

Browse files
committed
try modifying javascript to render correctly
1 parent b10e517 commit 9a64e0c

File tree

2 files changed

+155
-110
lines changed

2 files changed

+155
-110
lines changed

examples/case_studies/ssm_hurricane_tracking.ipynb

Lines changed: 141 additions & 110 deletions
Large diffs are not rendered by default.

examples/case_studies/ssm_hurricane_tracking.myst.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ from pymc_extras.statespace.utils.constants import (
120120
pio.renderers.default = "sphinx_gallery"
121121
```
122122

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+
123137
## Helper Functions
124138

125139
```{code-cell} ipython3

0 commit comments

Comments
 (0)