You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/examples/Widget List.ipynb
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -470,7 +470,13 @@
470
470
"cell_type": "markdown",
471
471
"metadata": {},
472
472
"source": [
473
-
"There are several widgets that can be used to display single selection lists, and two that can be used to select multiple values. All inherit from the same base class. You can specify the **enumeration of selectable options by passing a list** (options are either (label, value) pairs, or simply values for which the labels are derived by calling `str`)."
473
+
"There are several widgets that can be used to display single selection lists, and two that can be used to select multiple values. All inherit from the same base class. You can specify the **enumeration of selectable options by passing a list** (options are either (label, value) pairs, or simply values for which the labels are derived by calling `str`).\n",
474
+
"\n",
475
+
"<div class=\"alert alert-info\">\n",
476
+
"Changes in *ipywidgets 8*:\n",
477
+
"\n",
478
+
"Selection widgets no longer accept a dictionary of options. Pass a list of key-value pairs instead.\n",
479
+
"</div>"
474
480
]
475
481
},
476
482
{
@@ -639,11 +645,11 @@
639
645
"outputs": [],
640
646
"source": [
641
647
"import datetime\n",
642
-
"dates = [datetime.date(2015,i,1) for i in range(1,13)]\n",
648
+
"dates = [datetime.date(2015, i, 1) for i in range(1,13)]\n",
643
649
"options = [(i.strftime('%b'), i) for i in dates]\n",
0 commit comments