Commit 23d9b03
committed
DOC: Suppress IPython output in examples and tutorials where not needed
By default, sphinx-gallery captures the last output of each code block
and shows it in the generated html in yellow boxes. Especially in
tutorials with a frequently interleaving code and text blocks this may
appear confusing and reduces readability. In some cases, however, the
output is desired (although it could always be replaced by printing).
The global configuration is now changed to "capture nothing", for one
tutorial with multiple desired outputs this is overridden in the file
to show the output and in other cases with just one desired output
it's converted to a call to print().1 parent f44e70e commit 23d9b03
3 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments