Skip to content

Commit e9c7021

Browse files
committed
Use markdown to style info box
1 parent 152a485 commit e9c7021

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/source/examples/Widget List.ipynb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,14 +1031,13 @@
10311031
"```\n",
10321032
"\n",
10331033
"<div class=\"alert alert-info\">\n",
1034-
"Changes in <em>ipywidgets 8</em>:\n",
1034+
"Changes in *ipywidgets 8*:\n",
10351035
" \n",
1036-
"The <code>FileUpload</code> changed significantly in ipywidgets 8:\n",
1037-
"<ul>\n",
1038-
" <li>The <code>.value</code> traitlet is now a list of dictionaries with a <code>metadata</code> and <code>content</code> entry, rather than a dictionary mapping the uploaded name to the content. To retrieve the original form, use <code>{f[\"metadata\"][\"name\"]: f[\"content\"].tobytes() for f in uploader.value}</code>.</li>\n",
1039-
" <li>The <code>.data</code> traitlet has been removed. To retrieve it, use <code>[f[\"content\"].tobytes() for f in uploader.value]</code>.</li>\n",
1036+
"The `FileUpload` changed significantly in ipywidgets 8:\n",
10401037
" \n",
1041-
"</ul>\n",
1038+
"- The `.value` traitlet is now a list of dictionaries with a `metadata` and `content` entry, rather than a dictionary mapping the uploaded name to the content. To retrieve the original form, use `{f[\"metadata\"][\"name\"]: f[\"content\"].tobytes() for f in uploader.value}`.\n",
1039+
"- The `.data` traitlet has been removed. To retrieve it, use `[f[\"content\"].tobytes() for f in uploader.value]`.\n",
1040+
"- The `.metadata` traitlet has been removed. To retrieve it, use `[f[\"metadata\"]. for f in uploader.value]`.\n",
10421041
"</div>"
10431042
]
10441043
},

0 commit comments

Comments
 (0)