Commit f51071a
Fix visualization rendering with proper Sphinx/MyST-NB configuration
Critical fixes to make plots display correctly on Read the Docs:
1. **Fixed Sphinx Gallery boolean** (conf.py line 111)
- Changed 'plot_gallery': 'True' → 'plot_gallery': True
- String 'True' was causing issues with Sphinx Gallery logic
2. **Added MyST-NB render priority** (conf.py lines 91-93)
- Explicitly prioritize PNG/SVG image rendering
- Ensures matplotlib outputs are captured correctly
3. **Explicitly return figures in tutorial** (working_with_geometry.md)
- Added `fig` as last statement in 4 plot cells
- MyST-NB needs explicit figure returns to capture plots
- Now generates 5 images (was 3, then 0 on RTD)
Verified locally: All visualizations render correctly.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent cf17f13 commit f51071a
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
0 commit comments