Skip to content

Commit b90a9f5

Browse files
committed
incorporate @drammock's feedback into the notebook
1 parent 877dca1 commit b90a9f5

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

docs/examples/code-cells.ipynb

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@
139139
"cell_type": "markdown",
140140
"metadata": {},
141141
"source": [
142-
"The standard error stream is highlighted and displayed just below the code cell.\n",
143-
"The standard output stream comes afterwards (with no special highlighting).\n",
144-
"Finally, the \"normal\" output is displayed."
142+
"Normal output comes last. When both standard error and output are present, which one comes first can vary by kernel."
145143
]
146144
},
147145
{
@@ -270,6 +268,13 @@
270268
"### Image URLs"
271269
]
272270
},
271+
{
272+
"cell_type": "markdown",
273+
"metadata": {},
274+
"source": [
275+
"PNG format"
276+
]
277+
},
273278
{
274279
"cell_type": "code",
275280
"execution_count": null,
@@ -279,6 +284,13 @@
279284
"Image(url=\"https://www.python.org/static/img/python-logo-large.png\")"
280285
]
281286
},
287+
{
288+
"cell_type": "markdown",
289+
"metadata": {},
290+
"source": [
291+
"PNG format, `embed=True`"
292+
]
293+
},
282294
{
283295
"cell_type": "code",
284296
"execution_count": null,
@@ -288,6 +300,13 @@
288300
"Image(url=\"https://www.python.org/static/img/python-logo-large.png\", embed=True)"
289301
]
290302
},
303+
{
304+
"cell_type": "markdown",
305+
"metadata": {},
306+
"source": [
307+
"SVG format"
308+
]
309+
},
291310
{
292311
"cell_type": "code",
293312
"execution_count": null,
@@ -368,6 +387,8 @@
368387
"source": [
369388
"<div class=\"alert alert-info\">\n",
370389
"\n",
390+
"Note\n",
391+
"\n",
371392
"Make sure to use at least version 0.1.6 of the `matplotlib-inline` package\n",
372393
"(which is an automatic dependency of the `ipython` package).\n",
373394
"\n",
@@ -437,6 +458,7 @@
437458
"metadata": {},
438459
"outputs": [],
439460
"source": [
461+
"%config InlineBackend.figure_formats = ['svg']\n",
440462
"fig, ax = plt.subplots(figsize=[6, 3])\n",
441463
"ax.plot([4, 9, 7, 20, 6, 33, 13, 23, 16, 62, 8]);"
442464
]

0 commit comments

Comments
 (0)