Created
February 12, 2016 23:30
-
-
Save jdfreder/fb6b86312c7f6ae57190 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"[Index](Index.ipynb) - [Back](Widget Basics.ipynb) - [Next](Widget Events.ipynb)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Widget List" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Complete list" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"For a complete list of the GUI widgets available to you, you can list the registered widget types. `Widget` and `DOMWidget`, not listed below, are base classes." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"dict_values([<class 'ipywidgets.widgets.widget_selection.Dropdown'>, <class 'ipywidgets.widgets.widget_image.Image'>, <class 'ipywidgets.widgets.widget_string.Textarea'>, <class 'ipywidgets.widgets.widget_int.IntText'>, <class 'ipywidgets.widgets.widget_selectioncontainer.Tab'>, <class 'ipywidgets.widgets.widget_box.Proxy'>, <class 'ipywidgets.widgets.widget_selection.RadioButtons'>, <class 'ipywidgets.widgets.widget_string.Text'>, <class 'ipywidgets.widgets.widget_controller.Controller'>, <class 'ipywidgets.widgets.widget_int.BoundedIntText'>, <class 'ipywidgets.widgets.widget_color.ColorPicker'>, <class 'ipywidgets.widgets.widget_selection.ToggleButtons'>, <class 'ipywidgets.widgets.widget_selection.SelectionSlider'>, <class 'ipywidgets.widgets.widget_bool.Checkbox'>, <class 'ipywidgets.widgets.widget_box.PlaceProxy'>, <class 'ipywidgets.widgets.widget_string.HTML'>, <class 'ipywidgets.widgets.widget_bool.ToggleButton'>, <class 'ipywidgets.widgets.widget_float.FloatRangeSlider'>, <class 'ipywidgets.widgets.widget_button.Button'>, <class 'ipywidgets.widgets.widget_box.Box'>, <class 'ipywidgets.widgets.widget_box.FlexBox'>, <class 'ipywidgets.widgets.widget_selectioncontainer.Accordion'>, <class 'ipywidgets.widgets.widget_int.IntProgress'>, <class 'ipywidgets.widgets.widget_float.FloatText'>, <class 'ipywidgets.widgets.widget_controller.Button'>, <class 'ipywidgets.widgets.widget_selection.Select'>, <class 'ipywidgets.widgets.widget_float.BoundedFloatText'>, <class 'ipywidgets.widgets.widget_selection.SelectMultiple'>, <class 'ipywidgets.widgets.widget_float.FloatSlider'>, <class 'ipywidgets.widgets.widget_controller.Axis'>, <class 'ipywidgets.widgets.widget_int.IntSlider'>, <class 'ipywidgets.widgets.widget_string.Latex'>, <class 'ipywidgets.widgets.widget_int.IntRangeSlider'>, <class 'ipywidgets.widgets.widget_float.FloatProgress'>, <class 'ipywidgets.widgets.widget_bool.Valid'>])" | |
] | |
}, | |
"execution_count": 1, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"import ipywidgets as widgets\n", | |
"widgets.Widget.widget_types.values()" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"## Numeric widgets" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"There are 8 widgets distributed with IPython that are designed to display numeric values. Widgets exist for displaying integers and floats, both bounded and unbounded. The integer widgets share a similar naming scheme to their floating point counterparts. By replacing `Float` with `Int` in the widget name, you can find the Integer equivalent." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### FloatSlider" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAIBElEQVR4Xu3dW2gcZRjG8UmyOWvcoCB6YV1zEXORQJPciZqKiuKFVUTqCSMeEBUVPIEXWkVBVFBRvFFpi0I9YRX1wiNb8XDRhMgGowkKqUdUtDVRks1pfd50Ats27c7uTjbzzf4HHpJuvpn55vfNJm/ntDUeEwIIIIAAAggggEAkBGoi0Qs6gQACCCCAAAIIIOBRmLETIIAAAggggAACERGgMIvIQNANBBBAAAEEEECAwox9AAEEEEAAAQQQiIgAhVlEBoJuIIAAAggggAACFGbsAwgggAACCCCAQEQEKMwiMhB0AwEEEEAAAQQQoDBjH0AAAQQQQAABBCIiQGEWkYGgGwgggAACCCCAAIUZ+wACCCCAAAIIIBARAQqziAxEtXcjk8lsTiQSu47msLi4uFVtdnR1dU1WuxfbjwACCCAQTwEKs3iOq1NbpaJssK6ubltNzdF3x1wut7xdLS0t7alUar9TG0lnEUAAAQQQCCBAYRYAiSZrKzA2NrZPRVmytra24IoWFha8paWlTd3d3emCjWmAAAIIIICAYwIUZo4NWBy7S2EWx1FlmxBAAAEEShGgMCtFjXlCFaAwC5WThSGAAAIIOCxAYebw4MWl6xRmcRlJtgMBBBBAoFwBCrNyBZm/bAEKs7IJWQACCCCAQEwEXCvMHpD7ZcqoklL6ldeVpLJJOV35KSZjUzWbQWHm5FDbe+43pSmv9wv6/gTln1W26Ay99rn/+pK+diiTTm45nUYAAQTWUMC1wuw2WbygZJVB5Wm/KDOiS5TvlG+L9OpR+3Zld5Hz0TwkAQqzkCAru5hrtbpjlBHFCi0r1O5SzjtCN+y9+p7/s//09avKdpe1IYAAAm4IuFaYnSRW+1+6TYNKfmHWqH+3KPuKoD9Oba0gu1NJFzEfTUMUoDALEbNyizpFq/oxb3VX6/s25flVutCp1x5S7lB+r1wXWRMCCCDgnoBrhVm+8KGF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lGgU3d3d3pGBGwKQgggAACCCwLUJixI6y7wEphpqM5BftSX19PYVZQiQYIIIAAAq4KUJi5OnIx6rcVZnNzc8kghZmdjuOIWYwGn01BAAEEEDhIgMKMHWLdBawwm5+ft7tnC07+IzU4lVlQigYIIIAAAi4KUJi5OGox67MVZrqgP1Bh5m86hVnM9gE2BwEEEEDggACFGXvCugtYYaYL/5P29P9Ck53uVCjMCkHxcwQQQAABJwUK/yV0crPotEsCVpipv4EKM3tUBoWZS6NLXxFAAAEEihGgMCtGi7ZrIsCHmK8JKwtFAAEEEHBQgMLMwUGLW5etMNPdlskgn5Wpuzft4bKcyozbTsD2IIAAAggsC1CYsSOsu4AVZvrUhKQ9CqPQlM1m7cn/FGaFoPg5AggggICTAhRmTg5bvDqdyWSuUmH2SqHCzC78t08H0OeRtqdSqf3xUmBrEEAAAQQQ4IgZ+0BEBEZHRwfUFcsRJ921ub+1tXU7RVlEBo1uIIAAAgiELsARs9BJWSACCCCAAAIIIFCaAIVZaW7MhQACCCCAAAIIhC5AYRY6KQtEAAEEEEAAAQRKE6AwK82NuRBAAAEEEEAAgdAFKMxCJ2WBCCCAAAIIIIBAaQIUZqW5MRcCCCCAAAIIIBC6AIVZ6KQsEAEEEEAAAQQQKE3gf4vX5D900BSPAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.FloatSlider(\n", | |
" value=7.5,\n", | |
" min=5.0,\n", | |
" max=10.0,\n", | |
" step=0.1,\n", | |
" description='Test:',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Sliders can also be **displayed vertically**." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAEJCAYAAAA+ZuuY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KWd/CXp8AAQIECBAgMKSAYjYklMsIECBAgAABAn0L/A8MXw+RcM/NHwAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.FloatSlider(\n", | |
" value=7.5,\n", | |
" min=5.0,\n", | |
" max=10.0,\n", | |
" step=0.1,\n", | |
" description='Test',\n", | |
" orientation='vertical',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### FloatProgress" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAHCElEQVR4Xu3deahnYxzH8RljadxrKVkjZQtRmOEfomQpYmwZW1HCjEH2ZcZesjSJ+MP6DybhH6Emw9Rt/jDIEsmSJZKRPbJlic+nHqVb0zw995zf833OfZ/6dObeOcvzez2/pk/nnN9vZs5gQQABBBBAAAEEEAghMDPEKBgEAggggAACCCCAwAyKGW8CBBBAAAEEEEAgiADFLMhEMAwEEEAAAQQQQIBixnsAAQQQQAABBBAIIkAxCzIRDAMBBBBAAAEEEKCY8R5AAAEEEEAAAQSCCFDMgkwEw0AAAQQQQAABBChmvAcQQAABBBBAAIEgAhSzIBPBMBBAAAEEEEAAAYoZ7wEEEEAAAQQQQCCIAMUsyEQwDAQQQAABBBBAgGLGewABBBBAAAEEEAgiQDELMhEMAwEEEEAAAQQQoJjxHkAAAQQQQAABBIIIUMw6nIg5i5f/0+HhONQIBFYtOXgEZ+EUXQqMjY3x71aXoBwLAQRCCfAPXEfTQSnrCHLEh6GYjRi8o9NRzjqC5DAIIBBOoNVitoEkz1auUHZOqjdpvYlyaQ1lilkN9amfk2I2dcMaR6CY1VDnnAggMAqBP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7ulHx7UxfRfND/W8rvj3pW47+hn9/WvI45S7FxW254hJ1p+KSt0yZrbjc+Vk1Fzx/CvPWdK7r0/l8dewpxWXPV+38QQE/7D9feSadx1fvfM7shWKWTRVqQ4pZqOnIHgzFLJuKDRFAoDGBPopZdIKtNEA/h3ZzGqhLo7+uw7c2/QnOooViVsRWfSeKWfUpKBoAxayIjZ0QQKABgelYzPyw/16pnPlWpg38tRy+CjdROmcUs1K5uvtRzOr6l56dYlYqx34IIBBdYDoWs201Kf7iWT+j9qfiT2/6lqk/CFC8UMyK6aruSDGryl98copZMR07IoBAcIHpWMx6mRKKWS+svR+UYtY7cS8noJj1wspBEUAggADFrMNJmLd0wv/zAEtDAssWzPUVU5aGBMbHx/1/8LIggAACgxSgmA1yWnlRCCCAAAIIINCiAMWsxVljzAgggAACCCAwSAGK2SCnlReFAAIIIIAAAi0KUMxanDXGjAACCCCAAAKDFKCYDXJaeVEIIIAAAggg0KIAxazFWWPMCCCAAAIIIDBIAYrZIKeVF4UAAggggAACLQpQzFqcNcaMAAIIIIAAAoMUoJgNclp5UQgggAACCCDQogDFrMVZY8wIIIAAAgggMEgBitkgp5UXhQACCCCAAAItClDMWpw1xowAAggggAACgxSgmA1yWnlRCCCAAAIIINCiAMWsxVljzAgggAACCCAwSIF/Ab4m6zAIUAehAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.FloatProgress(\n", | |
" value=7.5,\n", | |
" min=5.0,\n", | |
" max=10.0,\n", | |
" step=0.1,\n", | |
" description='Loading:',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### BoundedFloatText" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/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h5AAAEEAhagmHlafIqZJ0iGoZixBxBAAIGABShmnhb/4MGDuRUrVlgqlfI0IsOEKJDNZm1gYMB9RRe/myFuAM4ZAQSCF+CPv6ctoEfMNqmU7aiurvY0IsOEKHDq1ClTOXtR34u6M8Tz55wRQACB0AUoZh53gB41m5fJZO7xOCRDBSZQVVX1ox4tGw/stDldBBBAAIFIgGLGVkAAAQQQQAABBGIiQDGLyUIwDQQQQAABBBBAgGLGHkAAAQQQQAABBGIiQDGLyUIwDQQQQAABBBBAgGLGHkAAAQQQQAABBGIiQDGLyUIwDQQQQAABBBBAgGLGHkAAAQQQQAABBGIi8B/g0cU/I0WiyQAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.BoundedFloatText(\n", | |
" value=7.5,\n", | |
" min=5.0,\n", | |
" max=10.0,\n", | |
" description='Text:',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### FloatText" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAHW0lEQVR4Xu3dXUhkdRjH8cfJnCIvdNnsRrd1cSOvYlFvjBC0rqKXi1rY2Nq2oLqwLCFqDasL2+jFhQjEoLK3jUUpgoqU3BsvW0UCV5O1CBsKZGUVukgdZ3qeaVxmX3LcmT96zvl/DzyMesb/Oefz/JUf55yZKREWBBBAAAEEEEAAgUAIlARiL9gJBBBAAAEEEEAAASGYMQkQQAABBBBAAIGACBDMAtIIdgMBBBBAAAEEECCYMQcQQAABBBBAAIGACBDMAtIIdgMBBBBAAAEEECCYMQcQQAABBBBAAIGACBDMHDZifHz8SElJyV6HQzKUZ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A6wX4ggAACCCCAgPcCBDPvpwAACCCAAAIIIBAUgX8BX0zCP4OYfS0AAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.FloatText(\n", | |
" value=7.5,\n", | |
" description='Any:',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"## Boolean widgets" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"There are three widgets that are designed to display a boolean value." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### ToggleButton" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAHaUlEQVR4Xu3dS0hUbxjH8UeszAokd5ZdKNq0EMZbBrXJRYZFQS3+QouKKDOSNtqiRRaCFaSWdsEudKG0hVDRoiBLLbpYargIpmyViyCjC0wlFfP3ecHBLurM6cx4fOd7Niqe8855P+8L/nje93gShAMBBBBAAAEEEEDAEwIJnrgLbgIBBBBAAAEEEEBACGZMAgQQQAABBBBAwCMCBDOPDAS3gQACCCCAAAIIEMyYAwgggAACCCCAgEcECGYeGQhuAwEEEEAAAQQQIJgxBxBAAAEEEEAAAY8IEMw8MhDcBgIIIIAAAgggEApmT58+/S8hIaEREgT+VSAYDBbl5OQ0/Ws7XI8AAggggEC8CYSCWXd3d3Dx4sUyZcqUeDOgvy4KfP36Vfx+v/h8PqqxLrrSFAIIIIBAfAiE/ng+e/YsmJWVFR+9ppdRFejs7JTs7GyCWVSVaRwBBBBAwEYBgpmNozrOfSKYjfMA8PEIIIAAAhNWgGA2YYfOuzdOMPPu2HBn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W+k4DdWMNNl0MePH0t/f79pc+jQ+5s6deo4TAH3P5Jg5r4pLSKAAAIIxIeAVcFMh0yXDbVippv7Z86caUZRlw5v3bola9euNT+PFMx0SXPbtm2merZ06VLRCpw+TDAUonQPm1bOtGKmy5B/O8IJZvovOHSP2r59+2TJkiVmT9yCBQtk0aJFVsw6gpkVw0gnEEAAAQTGQcC6YKZVLt2/pf93bN68eTJr1ixJTU01oUz3eT1//lyKi4vN/rE1a9aYJzhfvnxpvqanp0tTU5PZZ6aVNf0XGTk5OXLx4kWzPHn8+HGz1KnXbtmyRYqKikLhT8dO95Pt3LnThLeCggLzkIA+RKDLq0PhbtOmTbJ582azzKkPHvz8+dPcj1b6bDkIZraMJP1AAAEEEIi1gHXBLNaAfN6fAgQzZgUCCCCAAALOBAhmzty4ahQBghnTAwEEEEAAAWcCBDNnblxFMGMOIIAAAggg4LoAwcx1UhqkYsYcQAABBBBAwJkAwcyZG1dRMWMOIIAAAggg4LoAwcx1UhqkYsYcQAABBBBAwJkAwcyZG1dRMWMOIIAAAggg4LoAwcx1UhqkYsYcQAABBBBAwJkAwcyZG1dRMWMOIIAAAggg4LoAwcx1UhqkYsYcQAABBBBAwJlAKJgNvicyqK8kGnq/pLPmuCreBfSF72/evJGMjIzQ3Ip3E/qPAAIIIIBAuAKhP56DVY6MadOmdQQCgaRwL+Y8BH4XmD59+sCXL19ys7KyetBBAAEEEEAAgcgEqGpE5sXZCCCAAAIIIIBA1AQIZlGjpWEEEEAAAQQQQCAyAYJZZF6cjQACCCCAAAIIRE2AYBY1WhpGAAEEEEAAAQQiEyCYRebF2QgggAACCCCAQNQECGZRo6VhBBBAAAEEEEAgMgGCWWRenI0AAggggAACCERN4H94h6VONz8GJgAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.ToggleButton(\n", | |
" description='Click me',\n", | |
" value=False,\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### Checkbox" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAwCAYAAAC7ZLZJAAAH9ElEQVR4Xu3de0hedQDG8aNuYS2bxsZWuWa0/rGL3agWlWP9UdFtUUK6jU3oOoug7GLZhbWiaBF0JypneenORKEoWEHEohW1yj+CLpLdtIVzhVqZ9jzrvM65V3fe6dkO9D3w8K7X8573x+e8fzz8fuecsgI2BBBAAAEEEEAAgUQIZCViFAwCAQQQQAABBBBAIKCY8SNAAAEEEEAAAQQSIkAxS8iJYBgIIIAAAggggADFjN8AAggggAACCCCQEAGKWUJOBMNAAAEEEEAAAQQoZvwGEEAAAQQQQACBhAhQzBJyIhgGAggggAACCCBAMeM3gAACCCCAAAIIJESAYpaQE8EwEEAAAQQQQAABihm/AQQQQAABBBBAICECFLOEnAiGgQACCCCAAAIIUMz4DSCAAAIIIIAAAgkRoJgl5EQwDAQQQAABBBBAgGLGbwABBBBAAAEEEEiIAMUsISeCYSCAAAIIIIAAAkkpZkfpVNytdCi1kzwt0/T5q5RblGOUPyZ5PD6OAAIIIIAAAgjsFYGdillTU9OS4eHhFUp+um/PysraqtRXVFSs34PRzddnapTBsCy5QHUqfytvKE3KR8pte3Ds0R/J1n+cpbyr5FHMJqnJxxFAAAEEEEBgrwmMFLOGhoZVM2fOXF1QULAlNzd3IN0IBgYGcnt6emZt27ateunSpesyGOWx2rdNKQvLV+qj94X/uEOvzyvdU1DMfMhDlR8pZhmcIXZFAAEEEEAAgX0uMFLMGhsbO4qLi+ernE04qN7e3qC9vX3zsmXLjs9g9J9p37cVLy+O3jy7dbPyoPKssmWKitlcHednilkGZ4hdEUAAAQQQQGCfC4wuZsMLFy5MO6Du7u6gra0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ODwaZNm3p1V2bah9BOQF2qv92l+OJ8Xxvm681eUj5VjlN8cX6v4rsavWz5iuK7IW9XXIBc3Lwc6qK2UnGJ2195UnHB+zx83zNlXmK8V7kuPO5mvXrZ0wXOF/JPtJ2tP7qQecrwTsWzdp6Vc1Hzkqr/DwUeo5dZvd+Zisc5T6lXPCvoO0vZEEAAAQQQQACBjARGF7P1hYWFF8+b534x/uabApR6PcdsZUbfxM4IIIAAAggggAACEwqMFLO6urp8PfHfS3IzsrOzvYy4y6a7Nefqb119fX2LKisreVYXPy4EEEAAAQQQQGAKBXZ5SGxzc3ORliuL0n2HrjnrKC8v75jC7+dQCCCAAAIIIIAAAqFA1Kf3A4YAAggggAACCCAQswDFLGZgDo8AAggggAACCEQVoJhFlWI/BBBAAAEEEEAgZgGKWczAHB4BBBBAAAEEEIgqQDGLKsV+CCCAAAIIIIBAzAIUs5iBOTwCCCCAAAIIIBBVgGIWVYr9EEAAAQQQQACBmAUoZjEDc3gEEEAAAQQQQCCqAMUsqhT7IYAAAggggAACMQtQzGIG5vAIIIAAAggggEBUAYpZVCn2QwABBBBAAAEEYhagmMUMzOERQAABBBBAAIGoAhSzqFLshwACCCCAAAIIxCxAMYsZmMMjgAACCCCAAAJRBShmUaXYDwEEEEAAAQQQiFmAYhYzMIdHAAEEEEAAAQSiClDMokqxHwIIIIAAAgggELMAxSxmYA6PAAIIIIAAAghEFfgXM1tsQOODe3QAAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Checkbox(\n", | |
" description='Check me',\n", | |
" value=True,\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### Valid\n", | |
"\n", | |
"The valid widget provides a read-only indicator." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |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1a0xeAgQIECBAYKyAYTa2WocRIECAAAEC3QQMs26NyUuAAAECBAiMFTDMxlbrMAIECBAgQKCbgGHWrTF5CRAgQIAAgbEChtnYah1GgAABAgQIdBMwzLo1Ji8BAgQIECAwVsAwG1utwwgQIECAAIFuAoZZt8bkJUCAAAECBMYKGGZjq3UYAQIECBAg0E3AMOvWmLwECBAgQIDAWAHDbGy1DiNAgAABAgS6CRhm3RqTlwABAgQIEBgrYJiNrdZhBAgQIECAQDcBw6xbY/ISIECAAAECYwUMs7HVOowAAQIECBDoJnAF+YE7OCPVte4AAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Valid(\n", | |
" value=True,\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"## Selection widgets" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"There are four widgets that can be used to display single selection lists, and one that can be used to display multiple selection lists. All inherit from the same base class. You can specify the **enumeration of selectable options by passing a list**. You can **also specify the enumeration as a dictionary**, in which case the **keys will be used as the item displayed** in the list and the corresponding **value will be returned** when an item is selected." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### Dropdown" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAIgUlEQVR4Xu2dW0wdVRSGNwJNCDRRoy+m2rRVMcRWEap4wSai8RL7YNUElcS2XlCr9R401UCj8RKJmnhHqsRrIURNwEu8pWoQFZomjT5gSPrQqg9GfRBESyn+S4fkqG0dOHtg9uT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AIDUEMGaeSoEx8wSSMEETwJgFXT6ShwAEUkAAY+apCBgzTyAJEzQBjFnQ5SN5CEAgBQQwZp6KgDHzBJIwQRPAmAVdPpKHAARSQABj5qkIGDNPIAkTNAGMWdDlI3kIQCAFBDBmnoqAMfMEkjBBE8CYBV0+kocABFJAAGPmqQgYM08gCRM0AYxZ0OUjeQhAIAUEMGaeioAx8wSSMEETwJgFXT6ShwAEUkAAY+apCBgzTyAJEzQBjFnQ5SN5CEAgBQQwZp6KgDHzBJIwQRPAmAVdPpKHAARSQABj5qkI27dvn1y0aJErKyvzFJEwEAiPQNLGbGRkxO3YscMtW7aM967wLg8yhgAEYhDgzS0GpDi76AOptri4eMvu3bsPirM/+0AgiwRKS0vd6OhoYl2bN2/e5Pj4+Iqqqir7v7c0CEAAApkjgDHLXEnpEAQgAAEIQAACoRLAmIVaOfKGAAQgAAEIQCBzBDBmmSspHYIABCAAAQhAIFQCGLNQK0feEIAABCAAAQhkjgDGLHMlpUMQgAAEIAABCIRKAGMWauXIGwIQgAAEIACBzBHAmGWupHQIAhCAAAQgAIFQCfwJ5jc2Tn48omYAAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"from IPython.display import display\n", | |
"w = widgets.Dropdown(\n", | |
" options=['1', '2', '3'],\n", | |
" value='2',\n", | |
" description='Number:',\n", | |
")\n", | |
"display(w)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 11, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"'2'" | |
] | |
}, | |
"execution_count": 11, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"w.value" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"The following is also valid:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"metadata": {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NfD3vBJX/FdlzKY0Njb+Ja99EBcCEIBANQlgzKpJn31DAAIQgAAEIACBMgIYM04HCEAAAhCAAAQgUBACGLOCFII0IAABCEAAAhCAAMaMcwACEIAABCAAAQgUhADGrCCFIA0IQAACEIAABCCAMeMcgAAEIAABCEAAAgUhgDErSCFIAwIQgAAEIAABCPwXmtPbTs6l4v0AAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"w = widgets.Dropdown(\n", | |
" options={'One': 1, 'Two': 2, 'Three': 3},\n", | |
" value=2,\n", | |
" description='Number:',\n", | |
")\n", | |
"display(w)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 13, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"2" | |
] | |
}, | |
"execution_count": 13, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"w.value" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Furthermore, if a dropdown contains too man items, a scrollbar is automatically added." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 14, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAIm0lEQVR4Xu2de0idZRzHH6cNxAbL1f4Ia7GllbTKlLLLamTRhfqjdWGUsEul1WrdsViRUXQhqaC7ubIrKVJBdqEbVpgrHfuniKZ/BFrBQgvErOWl72+9wmmsefQ8r77P4fPAl/ecs/P+nt/z+b0ev3ue5z3mOBoEIAABCEAAAhCAQCII5CQiC5KAAAQgAAEIQAACEHAYMy4CCEAAAhCAAAQgkBACGLOEFII0IAABCEAAAhCAAMaMawACEIAABCAAAQgkhADGLCGFIA0IQAACEIAABCCAMeMagAAEIAABCEAAA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GMWdPlIHgIQSAABjJmnImDMPIEkTNAEMGZBl4/kIQCBBBDAmHkqAsbME0jCBE0AYxZ0+UgeAhBIAAGMmaciYMw8gSRM0AQwZkGXj+QhAIEEEMCYeSoCxswTSMIETQBjFnT5SB4CEEgAAYyZpyJgzDyBJEzQBDBmQZeP5CEAgQQQwJh5KgLGzBNIwgRNAGMWdPlIHgIQSAABjJmnIgwMDEyOjo66goICTxEJA4HwCAwNDbnCwsLYEh8ZGXH5+fmuqKiIz67YKBMYAhCYTwJ8uHmkr9mC9RMTE0d4DEkoCARFYMGCBZX6GdgWV9KK/2N5eXlzXPGJCwEIQGC+CWDM5rsC9A8BCEAAAhCAAAQiAhgzLgUIQAACEIAABCCQEAIYs4QUgjQgAAEIQAACEIAAxoxrAAIQgAAEIAABCCSEAMYsIYUgDQhAAAIQgAAEIIAx4xqAAAQgAAEIQAACCSGAMUtIIUgDAhCAAAQgAAEI/AP1N0tOwlM7rQAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"from IPython.display import display\n", | |
"w = widgets.Dropdown(\n", | |
" options=['1', '2', '3', '4', '5', '6', '7', '8', '9'],\n", | |
" value='2',\n", | |
" description='Number:',\n", | |
")\n", | |
"display(w)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 15, | |
"metadata": { | |
"collapsed": false, | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"'2'" | |
] | |
}, | |
"execution_count": 15, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"w.value" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"The following is also valid:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 16, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgo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FQ5AYxZlReYw4MABCAAAQhAIB4CGLN4akWmEIAABCAAAQhUOQGMWZUXmMODAAQgAAEIQCAeAhizeGpFphCAAAQgAAEIVDmBdwCBw81OM8qxHQAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"w = widgets.Dropdown(\n", | |
" options={'One': 1, 'Two': 2, 'Three': 3,\n", | |
" 'Four': 4, 'Five': '5', 'Six': 6,\n", | |
" 'Seven': 7, 'Eight': 8, 'Nine': 9},\n", | |
" value=2,\n", | |
" description='Number:',\n", | |
")\n", | |
"display(w)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 17, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"2" | |
] | |
}, | |
"execution_count": 17, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"w.value" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### RadioButtons" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 18, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAABNCAYAAAAM2KhWAAAW40lEQVR4Xu2dD1SdZ33HiaOkKjFAsQu21BAVCSwzmri5Rm0359ZtblDnaCi4xKSbm7GrVdtm2thobVpdpm2XRI9GnZSEpIokp4tzm3VxNWq1ncDQQeMkEGpmhAgGCAaQfT/t++rt3b0XSEh47833Oed7XnKf98/zfp57zv3m9/z5zctyMQETMAETMAETMAETiASBeZFohRthAiZgAiZgAiZgAiaQZWPmL4EJmIAJmIAJmIAJRISAjVlEOsLNMAETMAETMAETMAEbM38HTMAETMAETMAETCAiBGzMItIRboYJmIAJmIAJmIAJ2Jj5O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1ibQ9HtyY6w9JiYxZOJzZo3oiXcw9o/yJxFAkES8KQ6gMpRJd+4IUJlWPNWYMgRKxYw4c96Uwt+wx6QrpiPQGiSFS5p49GJzjgwmYgAmYgAmkPQEbswh2YWNj4xYNZd5cUlKCYUlYOjs7h7Wf2cbq6mqGBlOVd6lyTWBurtKRYUYMF5GzrRJDme8NbkDErEZ6RPqG9DyJoUnmjTEcyVyxN0vM/wpXZRIx+66E+XtPcD3z0YieMRcNk0d0KyxEw14Scz2fM1TKUCbDlrTnoIQJYyHBqHSlxHy3eyX2b/u5ROSMuXU838UETMAETMAEMoKAjVlEu7GpqWmHVmeu03yz+fFN7OjoGB4bG9taWVm5eRrNZ0Xkw4GZYXL+fRJDn0zoZ85Wv7ROqpCIPmGiMGqF0j9KmCwWArBqE6O2XWIRAKspByXmrGHo2N8MU8V9XyQx8R+zdY/E0GhYXhs862Mxn2H+7pc2SphFhjQxXqzcxCSulZhTxtwzFgT8S3AOKz49lBkD0n+agAmYgAmkNwEbswj3n3b+35STk7NeaZgWFhQUzO/v7z89MTFxTNqm/cswSC4mYAImYAImYAIZRMDGLOKdqcUAhTJizNEqkUF7QkatVcOXbDfhYgImYAImYAImkGEEbMwyrEP9OiZgAiZgAiZgAulLwMYsffvOLTcBEzABEzABE8gwAjZmGdahfh0TMAETMAETMIH0JWBjlr5955abgAmYgAmYgAlkGAEbswzrUL+OCZiACZiACZhA+hKwMUvfvnPLTcAETMAETMAEMoyAjVmGdahfxwRMwARMwARMIH0J2Jilb9+55SZgAiZgAiZgAhlGwMYswzrUr2MCJmACJmACJpC+BGzM0rfv3HITMAETMAETMIEMI2BjlmEd6tcxARMwARMwARNIXwI2Zunbd265CZiACZiACZhAhhH4P9SxXplzV4RvAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.RadioButtons(\n", | |
" description='Pizza topping:',\n", | |
" options=['pepperoni', 'pineapple', 'anchovies'],\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### Select" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 19, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAB9CAYAAAAIoq/7AAAO6UlEQVR4Xu3db6jfVR3A8TPntbEEa4KFWfaHtZGku3ibMiiZ1DCa1IOxB7ZNeqKFJhEVTqUHltBaGslghD6Y2xAmmmTtwR5oEcrAZhto9MeymXFZMceuc026u63z/fFbjZuOe865O+fnb68Lh7s/5/v9/Pb6nbE3v/tnc4I3AgQIECBAgACBgRCYMxCPwoMgQIAAAQIECBAIwswhIECAAAECBAgMiIAwG5AnwsMgQIAAAQIECAgzZ4AAAQIECBAgMCACwmxAnggPgwABAgQIECAgzJwBAgQIECBAgMCACAizRk/E3r17P3j++ef/anJycn6jh2AsAQIETiswMjLyz9dff/1To6Oj+1ERIFBHQJjVcf6/KS+++OKJCy64IMybN6/RIzCWAAECpxd44403wsTERFi4cKF/KxwWApUE/GWrBD19zJ49e05ceeWVjaYbS4AAgZkJPPfcc2FsbMy/FTPjsotAsYC/bMWEeTcQZnluriJAoK6AMKvrbRoBYdboDAizRvDGEiCQJCDMkrhsJlAsIMyKCfNuIMzy3FxFgEBdAWFW19s0AsKs0RkQZo3gjSVAIElAmCVx2UygWECYFRPm3UCY5bm5igCBugLCrK63aQSEWaMzIMwawRtLgECSgDBL4rKZQLGAMCsmzLuBMMtzcxUBAnUFhFldb9MIDGOYfTw+rV+P60hc58W1IK4fxrX7lKd7Ufzxd+KaiGssriVxfTWuTbWOhDCrJW0OAQIlAsKsRM+1BNIFhi3MPhkJtsX16bj+1Of4QHz/i7i+FtfP+r/2u/j+C3H9Ia7OoAuy7tcGOsz2798fHnzwwTA+Ph5uvvnmE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LM/NVQQI1BUQZnW9TSMgzBqdAWHWCN5YAgSSBIRZEpfNBIoFhFkxYd4NhFmem6sIEKgrIMzqeptGQJg1OgPCrBG8sQQIJAkIsyQumwkUCwizYsK8GwizPDdXESBQV0CY1fU2jYAwa3QGhFkjeGMJEEgSEGZJXDYTKBYQZsWEeTcQZnluriJAoK6AMKvrbRoBYdboDAizRvDGEiCQJCDMkrhsJlAsIMyKCfNuIMzy3FxFgEBdAWFW19s0AsKs0RkQZo3gjSVAIElAmCVx2UygWECYFRPm3UCY5bm5igCBugLCrK63aQSEWaMzIMwawRtLgECSgDBL4rKZQLGAMCsmzLuBMMtzcxUBAnUFhFldb9MICLNGZ0CYNYI3lgCBJAFhlsRlM4FiAWFWTJh3A2GW5+YqAgTqCgizut6mERBmjc6AMGsEbywBAkkCwiyJy2YCxQLCrJgw7wbCLM/NVQQI1BUQZnW9TSMgzBqdAWHWCN5YAgSSBIRZEpfNBIoFhFkxYd4NhFmem6sIEKgrIMzqeptGQJg1OgPCrBG8sQQIJAkIsyQumwkUCwizYsK8GwizPDdXESBQV0CY1fU2jYAwa3QGhFkjeGMJEEgSEGZJXDYTKBYQZsWEeTcQZnluriJAoK6AMKvrbRoBYdboDHRhtmTJkjB37txGj8BYAgQInF5gamoq7Nu3L4yNjfm3wmEhUEnAX7ZK0NPHjI+Pnzh06FAYGRlp9AiMJUCAwOkFJicnw4IFC8LFF1/s3wqHhUAlAX/ZKkG/2Zi9e/cuOX78+LsaPgSjCRAg8JYC55577uHR0dF9iAgQqCcgzOpZm0SAAAECBAgQOK2AMHNACBAgQIAAAQIDIiDMBuSJ8DAIECBAgAABAsLMGSBAgAABAgQIDIiAMBuQJ8LDIECAAAECBAgIM2eAAAECBAgQIDAgAsJsQJ4ID4MAAQIECBAg8B8t1m26ikpeKAAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Select(\n", | |
" description='OS:',\n", | |
" options=['Linux', 'Windows', 'OSX'],\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### SelectionSlider" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 20, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAALvElEQVR4Xu2dB4zcWB2HZ8NmkxA6QnTICQiBZHVsQIAoR+hH7+joh+i99xZ6uaOKLsrRexMgqkA00RGQZemw9CZxkATSd/l9J480jOwdTyYz9ma/J/3k3fGz/eazn/17//eeZ6pjkoAEJCABCUhAAhJoBYGpVpTCQkhAAhKQgAQkIAEJdDRmXgQSkIAEJCABCUigJQQ0Zi05ERZDAhKQgAQkIAEJaMy8BiQgAQlIQAISkEBLCGjMWnIiLIYEJCABCUhAAhLQmHkNSEACEpCABCQggZYQ0Ji15ERYDAlIQAISkIAEJKAx8xqQgAQkIAEJSEACLSGgMWvJibAYEpCABCQgAQlIQGPmNSABCUhAAhKQgARaQkBj1pITcTzFWFhYuPWxY8c+PWjbqampzvT09Knbtm378aC8rpeABCQgAQlIoDkCGrPm2I985Pn5+eUYrg7Ga6W0tLTUiYHr7Nixw/M9MnV3IAEJSEACEhgfAR/U42M79j3v2bNneWZmptZxDh8+3JmdnfV816JlJglIQAISkEAzBHxQN8P9hBxVY3ZCMLoTCUhAAhKQQGsIaMxacyqGL4jGbHhmbiEBCUhAAhJoMwGNWZvPzoCyacxW8cmz6BKQgAQkIIESAsMYs6tk+2dGe6NHFft6bpYXjJ4cPbhY7shyv7THT0BjNn7GHqGSwKaseUR0n+jUklw3yWfPit4YfaAmx/XJ94DoSdGVam5jNglIQAInFYFeY3bNfDOM1m2ip0Vvj/7W823Pn7/fGv07emjx+c4sGX3+nei06MsRRk1jNoHLRGM2AcgeoorABbLivtGzo0uVZLpQPpuPaLS9vybGD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TcR4tN4xdSsU4zwuPCzp1sUIM54O9qTedSvt47x1GLODBw8OzEeGjRs3dqampnzQ1aLVjkwx0+fu3bv39JJuTApIFAxTg9GiUUTklogT3fY0GFiHEcPkUKepu3T10+XJuDOia9QpJgYQTabOst1vo7p1kBdKU+dpYFAezBl1h3qPyaNrFeP2uAhzWHUPYCYpRhOjiLG8d/SKqKqhlVUmCUhAAicngWF+kqmtBDBTL4sY5zVs4vvTSsf48VAhEfFj9iimrGodD7zGE8bs0KFuz+zKxdmwYUNndnb2ZDjfjXO3ABKQgAQkIIFxEVjND2p+n49W+baIblFmUA6b6H6kVc7szl8UG/PKAcS7zKrWMR6n8YQxy/ijWuWYmZnRmNUiZSYJSEACEpBAcwRWszEjosX7m+geZVba8SQG+/Nbf3TF0iX7+4juWV7Bway1qnVlP1d1PMcfaRuM2dGjDIsbnKanpzVmgzGZQwISkIAEJNAogdVszBoF14aDY8yWlhgmNzitW7dOYzYYkzkkIAEJSEACjRLQmDWKf7SDY8yG2YNjzIahZV4JSEACEpDA5AlozCbP/IQdEWNGJKxOIrKmMatDyjwSkIAEJCCB5ghozJpjP/KRMWaMHauTGIumMatDyjwSkIAEJCCB5ghozJpjP/KRh33zv8ZsZOTuQAISkIAEJDBWAhqzseId784xZrw4tk7iRbQaszqkzCMBCUhAAhJojoDGrDn2Ix8ZY8ZPLeWN/ivui/FlvO9s+/btnu+RqbsDCUhAAhKQwPgI+KAeH9ux73l+fv6M5eVlfkpnYMokgdNizL42MKMZJCABCUhAAhJojIDGrDH0HlgCEpCABCQgAQn8PwGNmVeEBCQgAQlIQAISaAkBjVlLToTFkIAEJCABCUhAAhozrwEJSEACEpCABCTQEgIas5acCIshAQlIQAISkIAENGZeAxKQgAQkIAEJSKAlBDRmLTkRFkMCEpCABCQgAQlozLwGJCABCUhAAhKQQEsI/A/FJLpOkbH8HgAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.SelectionSlider(\n", | |
" description='I like my eggs ...',\n", | |
" options=['scrambled', 'sunny side up', 'poached', 'over easy'],\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### ToggleButtons" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 21, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAOEElEQVR4Xu2dCZBNZxbHj9ga3RitEmshdCFNTMcydsaM3VhiKZQsmNgLZR9iDYOaxNhF7INEBGOXhIg9hLGVbRilDWVXdrGb8/+8qzqdZHj33fbu9/L/qk7d1/3e/e75fudVvX+dc757UwkHCZAACZAACZAACZCALwik8oUXdIIESIAESIAESIAESEAozPglIAESIAESIAESIAGfEKAw80kg6AYJkAAJkAAJkAAJUJjxO0ACJEACJEACJEACPiFAYeaTQNANEiABEiABEiABEqAw43eABEiABEiABEiABHxCgMLMJ4GgGyRAAiRAAiRAAiRAYebRd+CLL76olCFDho13796NGKbR0dESGxvrEaHImiYqKkru3Llj9aKyZMny6ObNmwUTEhISrV4InScBEiCBCCIQMSIi3DFZuXLl4yJFikjGjBnD7Ypn1//uu++kevXqEhMT49mckTDRjRs35MyZM1K4cGGrl3Px4kW5du3ambi4uNxWL4TOkwAJkEAEEaAw8yiYixcvflyuXDmPZvPHNBRmPx+HSBFmWMepU6euxMfHZ/PHN45ekAAJkAAJUJh59B2gMPMIpAXTUJhZECS6SAIkQAKWEqAw8yhwFGYegbRgGgozC4JEF0mABEjAUgIUZh4FjsLMI5AWTENhZkGQ6CIJkAAJWEqAwsyjwFGYeQTSgmkozCwIEl0kARIgAUsJUJh5FDgKM49AWjANhZkFQaKLJEACJGApAQozjwJHYeYRSAumoTCzIEh0kQRIgAQsJfBrFGa4Y2pv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IxuIZncMCFWIK4gqPw03wsxP/ju+UJj5MSr0iQRI4NdOwM/CDLfEwK5MlDp9PyjMQg8R+suQ8cKd8THQS4UnCCDr5adBYeanaNAXEiABEogsAn4VZsUU80Q13EqjlRruWebrQWEWenhQrsRTEFCqw+5DbIpA6TGYm6+G7sWzZ6AwezYjfoIESIAESMAdAb8KM3erCeNZFGZhhP+CL01h9oKB83IkQAIk8CsiQGHmUbApzDwCacE0FGYWBIkukgAJkIClBCjMPAochZlHIC2YhsLMgiDRRRIgARKwlACFmUeBozDzCKQF01CYWRAkukgCJEAClhKgMPMocBRmHoG0YBoKMwuCRBdJgARIwFICFGYeBY7CzCOQFkxDYWZBkOgiCZAACVhKgMLMo8BRmHkE0oJpKMwsCBJdJAESIAFLCVCYeRQ4fT7jYzxkPGNGPFkqMsaLvvO/LdQiRZjh8V76fNEz+kiw3Lawp58kQAIkEOkEKMw8irA+eLqOPmh6FZ6JGCkjJibGPFCc46cE8PzPO3fuWI0GD4rXNRRISEhItHohdJ4ESIAEIogAhVkEBZNLIQESIAESIAESsJsAhZnd8aP3JEACJEACJEACEUSAwiyCgsmlkAAJkAAJkAAJ2E2Awszu+NF7EiABEiABEiCBCCJAYRZBweRSSIAESIAESIAE7CZAYWZ3/Og9CZAACZAACZBABBGgMIugYHIpJEACJEACJEACdhP4H5fxhopzfjesAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.ToggleButtons(\n", | |
" description='Speed:',\n", | |
" options=['Slow', 'Regular', 'Fast'],\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### SelectMultiple\n", | |
"Multiple values can be selected with <kbd>shift</kbd> and/or <kbd>ctrl</kbd> (or <kbd>command</kbd>) pressed and mouse clicks or arrow keys." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 22, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAB9CAYAAAAIoq/7AAAQ0UlEQVR4Xu3de6imRR0H8FmPuSUmrfe8Cylh5m2PBmakmGZgf+jCrop4QdDUKFHLEE0tMdO0CMEb6CqKWyheM8E7EioqriL6hyBe8H7ZWqhc87jNvJ4Tq6nszOyZec+7nxd+7NnjzPye9/PMul+e53nPzgpeBAgQIECAAAECQyEwayiOwkEQIECAAAECBAgEwcwmIECAAAECBAgMiYBgNiQnwmEQIECAAAECBAQze4AAAQIECBAgMCQCgtmQnAiHQYAAAQIECBAQzOwBAgQIECBAgMCQCAhmnU7EE0888ZU5c+bc16m9tgQIEFgpgSVLluy9yy67/H2lBhtEgEC1gGBWTVi2wHPPPbd89uzZYWxsrGwBswgQIDDNAhMTE2HZsmVh22239XfFNFtbnsCUgD9snfbCY489tnzu3LmdumtLgACBlRN4/PHHw/j4uL8rVo7LKALVAv6wVROWLSCYlbmZRYBAWwHBrK23bgQEs057QDDrBK8tAQJZAoJZFpfBBKoFBLNqwrIFBLMyN7MIEGgrIJi19daNgGDWaQ8IZp3gtSVAIEtAMMviMphAtYBgVk1YtoBgVuZmFgECbQUEs7beuhEQzDrtAcGsE7y2BAhkCQhmWVwGE6gWWN2C2Zwo9lSsb8V6tVqvYgHBrALPVAIEmgkIZs2oNSIwEBj2YPbdeIy/jfX1WAsnz9mX46/zY+0a67nM87hGHH9UrKtjfZA5d5UOF8xWKafFCBCYJgHBbJpgLUvgMwSGPZilw/55rGNifW2F97B//Pr1WIsrz+zsOP+IWJdXrpM9fVUEs8svvzwceeSRYa211sruv+KEDz/8MNx+++3hgQceCBdeeGHVWiYTIDBaAoLZaJ1P72b4BWZCMDslMv7oE8EsHXdKI8sqiNPVsytivRzrrIp1iqbWBrN33303nHDCCeHYY48Ne+21V9ExrDjpxRdfDOecc0644opE4kWAAIGPBAQzO4FAW4GZGMyOjETXxkrB6sexfhrr+Fj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W0AwK3MziwCBtgKCWVtv3QgIZp32QApmO++8cxgbG+t0BNoSIEDg8wUmJibC4sWLw/j4uL8rbBYCjQT8YWsE/ck2r7766vKlS5eGddddt9MRaEuAAIHPF5j6f9Smm27q7wqbhUAjAX/YGkF/WptHH310r/j9VF4ECBAYRoH7d9ttt/uH8cAcE4FRFRDMRvXMel8ECBAgQIDAjBMQzGbcKXPABAgQIECAwKgKCGajema9LwIECBAgQGDGCQhmM+6UOWACBAgQIEBgVAUEs1E9s94XAQIECBAgMOMEBLMZd8ocMAECBAgQIDCqAoLZqJ5Z74sAAQIECBCYcQL/BZ4DAsnNiNVdAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"w = widgets.SelectMultiple(\n", | |
" description=\"Fruits\",\n", | |
" options=['Apples', 'Oranges', 'Pears']\n", | |
")\n", | |
"display(w)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 23, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"('Apples',)" | |
] | |
}, | |
"execution_count": 23, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"w.value" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"## String widgets" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"There are 4 widgets that can be used to display a string value. Of those, the `Text` and `Textarea` widgets accept input. The `Latex` and `HTML` widgets display the string as either Latex or HTML respectively, but do not accept input." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### Text" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 24, | |
"metadata": { | |
"collapsed": false | |
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q0aCGY/L9kyRJjxLAAoEyZMmZSfnbl+vXrxpjB9KGkpaWZvdK6dgXiHwsWEyBjVrlyZWPUMDSJ+2zdutUIz4N7YRsQZN0w1wymEmYM7cVctmrVqpnsG+aftWnTJjMbmDNpnuF1AjRmXu8BbD8JuJuAk4zZ2yT9gd4Mw5gB0wdj9jsVjNqGcB4kHGMWzn14DQl4nQCNmdd7ANtPAu4m4FVjhr3QdqmwN9oTVX7VEBU2sb0ZTshpzMKhxmtIIHQCNGahM+MVJEACkUPAq8YMW83jjQLYmOt/KgydYsPa8+GGjsYsXHK8jgRCI0BjFhovnk0CJBBZBLxqzKxHicbMOlJWSAIvJUBjxo5BAiTgZgI0ZpaiS2NmCSSrIYEcCNCYsYuQAAm4mQCNmaXo0phZAslqSIDGjH2ABEjAwwRozCwFn8bMEkhWQwI0ZuwDJEACHiZAY2Yp+DRmlkCyGhKgMWMfIAES8DABGjNLwacxswSS1ZAAjRn7AAmQgIcJ0JhZCj6NmSWQrIYEaMzYB0iABDxMgMbMUvD1VUa+ChUqSL58eCMUCwmQwJsg8PjxY/NqMn2lF7+73gRg1kkCJPCzE+CXm6UQHD58OCE6Ojo5PT3dUo2shgRI4HkCUVFR4vP5OlSvXh3vymUhARIgAdcRoDFzXUjZIBIgARIgARIggUglQGMWqZHjc5MACZAACZAACbiOAI2Z60LKBpEACZAACZAACUQqARqzSI0cn5sESIAESIAESMB1BGjMXBdSNogESIAESIAESCBSCdCYRWrk+NwkQAIkQAIkQAKuI0Bj5rqQskEkQAIkQAIkQAKRSuD/tgPyXS+pgF0AAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Text(\n", | |
" description='String:',\n", | |
" value='Hello World',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### Textarea" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 25, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAB3CAYAAACpOYydAAARNElEQVR4Xu2de4xV1RWHt4yCQBCr1EKdCqFAjFgiHV/x0aqtStBa8Q+gPoFWpYgPqlgLKA/BAiogIigvBymlYkOLpITEkCaVKqEMoLTKqzgFWglECiLyKA5dv82dcVSYmXtZmjt3fydZucPMOeuc862V4cve+5w5IbBBAAIQgAAEIAABCOQFgRPy4iq4CAhAAAIQgAAEIACBgJjRBBCAAAQgAAEIQCBPCCBmeVIILgMCEIAABCAAAQggZvQABCAAAQhAAAIQyBMCiFmeFILLgAAEIAABCEAAAogZPQABCEAAAhCAAATyhABi5lSIVatWnfrJJ5/ccfrpp3d3SkkaCEDgcwQ++OCDeUVFRbM6d+68CzgQgAAECpEAYuZU1Q0bNhw+8cQTQ8OGDZ0ykgYCEPg8gYMHD4ZDhw6F9u3b87uL9oAABAqSAL/cnMq6YsWKwyUlJU7ZSAMBCByLQFlZWTj//PP53UWLQAACBUmAX25OZUXMnECSBgK1EEDMaBEIQKCQCSBmTtVFzJxAkgYCiBk9AAEIJEwAMXMqPmLmBJI0EEDM6AEIQCBhAoiZU/ERMyeQpIEAYkYPQAACCRNAzJyKj5g5gSQNBBAzegACEEiYAGLmVHzEzAkkaSCAmNEDEIBAwgQKTcyGWy2bWfziq64pYvZVE+d8qRLgqcxUK899QyANAvkmZr8y7B0tTrK43mKfRYssSvFd21dveF2WxTEuuyJmLhhJAoFaCSBmtSJiBwhAoB4TyCcx62kcf2zxkwzPDvb5J4v2mX83ss87LKbmI+9cxGzjxo1h+vTpYffu3eGee+4J5557bti2bVuYO3duWL58ebj33nvDBRdcEE46SZ762e3DDz8M8+bNCwcOHIjH6j+r2bNnh4EDB4YzzzyzzohWrlwZJkyYEDp06BD69+8ftm/fHp566qlw8sknh4cffjgUFxeHnTt3hpkzZ4YWLVqEnj17xp/VZduyZUuYNWtW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5CkgQBiRg9AAAIJE0DMnIqPmDmBJA0EEDN6AAIQSJgAYuZUfMTMCSRpIICY0QMQgEDCBBAzp+IjZk4gSQMBxIwegAAEEiaAmDkVHzFzAkkaCCBm9AAEIJAwAcTMqfiImRNI0kAAMaMHIACBhAkgZk7FR8ycQJIGAogZPQABCCRMADFzKj5i5gSSNBBAzOgBCEAgYQKImVPxETMnkKSBAGJGD0AAAgkTQMycio+YOYEkDQQQM3oAAhBImABi5lT8rVu3Ht63b19o2rSpU0bSQAACnyewd+/e0Lhx41BcXMzvLtoDAhAoSAL8cnMsa1lZWa+Kioo2jilJBQEIVCPQoEGD8pKSklKgQAACEChUAohZoVaW+4IABCAAAQhAoN4RQMzqXcm4YAhAAAIQgAAECpUAYlaoleW+IAABCEAAAhCodwQQs3pXMi4YAhCAAAQgAIFCJYCYFWpluS8IQAACEIAABOodAcSs3pWMC4YABCAAAQhAoFAJIGaFWlnuCwIQgAAEIACBekfg/5vg7sNdujGXAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Textarea(\n", | |
" description='String:',\n", | |
" value='Hello World',\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"### Latex" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 26, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAA+CAYAAACBbtc5AAAOq0lEQVR4Xu2dC7C1UxnHkUrpgpJSGcWkiNxSSXKLNEUoJSJ0kUSRUCqhMEIuUUlRpJJLLuWSy0hyTaRUSlRIpRshI/X/TXvPvLNn7++8+5z97vOufX5r5j9nX9a71rN+63zne2atZz1r/vksEpCABCQgAQlIQAKtIDB/K6zQCAlIQAISkIAE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ieMq6T91tmU5aLBTxCXhJRUc6esjUoBUV/qmMwYcbk6l4oTiPFskIIEJIKBjNgGT6BAkMAMCxKOxEvXlGbQx7kfJW0YM2ZHj7nhE/XFylhQfbLlOd1WPv92kNcExJXedRQISmBACOmYTMpEOQwLTJMDqEzm/yC3GCce2F7Y0yaD/+bYbOg/7+LtLShBWzqabb42tULariSls20GHgqdG0yUw+wR0zGZ/DrRAAm0gsGqMIOi/7WWlGFiNNWu7vYPsI5EucX9sx9bN/9Zta5W84FJ0DmRw2btFAhKYIAI6ZhM0mQ5FAhIoisASsZYYv2Gvj+Iiehy6Jg9iFAVSYyUwSQR0zCZpNh2LBCRQGoHefHN17F84lTi1apGABCaQgI7ZBE6qQ5KABCQgAQlIoEwCOmZlzptWS0ACEpCABCQwgQR0zCZwUh2SBCQgAQlIQAJlEtAxK3PetFoCEpCABCQggQkkoGM2gZPqkCQgAQlIQAISKJOAjlmZ86bVEpCABCQgAQlMIAEdswmcVIckAQlIQAISkECZBP4HgyEjXXEn5UQAAAAASUVORK5CYII=" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Latex(\n", | |
" value=\"$$\\\\frac{n!}{k!(n-k)!} = \\\\binom{n}{k}$$\",\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### HTML" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 27, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAjCAYAAAA+JsZ8AAAGhUlEQVR4Xu2dZagtVRiG71XsQBQFwTggFvpD7PxhYYvYgR2Y2IqIcuwOBAsRC0VFRbFAFK7dImJiYYCK3Rg/fB9YA8Owz97cfY6wYJ4FL3tqzXzzrPPj5VvfrDN7lk0CEpCABCQgAQlIoAoCs6uIwiAkIAEJS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_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.HTML(\n", | |
" value=\"Hello <b>World</b>\"\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ | |
"## Button" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 28, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAAHWUlEQVR4Xu3dy0tVXRjH8edkeYEgc2ZpStEfYBdNsIkOVEwSchIEr0VUJokTddAgFcELaJZ5wUq06DYQKhoUdC8srTQaCF6CBg6CDE9BkN3Oe57F68HeMmWz85yz93dPVNx7nbU/a4E/nrW22yMcCCCAAAIIIIAAAiEh4AmJXtAJBBBAAAEEEEAAASGYMQkQQAABBBBAAIEQESCYhchA0A0EEEAAAQQQQIBgxhxAAAEEEEAAAQRCRIBgFiIDQTcQQAABBBBAAAGCGXMAAQQQQAABBBAIEYGfgtnz58//8Xg8ySHSN7oRhgI+n+/Nli1besOw63QZAQQQQACBoAsEgtnk5KTvy5cvEhUVFfRO0YHwFZiZmZHIyEhJSEigGhu+w0jPEUAAAQSCJBD44+mvlvk2b94cpG7wsU4SePHihfirZgQzJw0q94IAAgggsCQCBLMlYXbXhxDM3DXe3C0CCCCAgH0CBDP7LGnpPwGCGVMBAQQQQAABawIEM2tuXPUHAYIZ0wMBBBBAAAFrAgQza25cRTBjDiCAAAIIIGC7AMHMdlIapGLGHEAAAQQQQMCaAMHMmhtXUTFjDiCAAAIIIGC7AMHMdlIapGLGHEAAAQQQQMCaAMHMmhtXUTFjDiCAAAIIIGC7AMHMdlIapGLGHEAAAQQQQMCagCOD2ZMnT+Tu3buydu1aiYiIkE+fPsn79+/l6NGj8ujRI2lpaZGmpiZJTk6WGzduyLNnz6S6uvq3gt++fZMLFy7IrVu35OLFi9aU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uTy5ctmn5lW1vRfZGzdulXOnTtnlifb2trMUqdeu2/fPtm9e3cg/OnY6X6ykpISE95ycnLMQwL6EIEur86Gu6KiItm7d69Z5tQHD75//276o5U+pxwEM6eMJPeBAAIIILDUAo4LZksNyOf9KkAwY1YggAACCCBgTYBgZs2Nq/4gQDBjeiCAAAIIIGBNgGBmzY2rCGbMAQQQQAABBGwXIJjZTkqDVMyYAwgggAACCFgTIJhZc+MqKmbMAQQQQAABBGwXIJjZTkqDVMyYAwgggAACCFgTIJhZc+MqKmbMAQQQQAABBGwXIJjZTkqDVMyYAwgggAACCFgTIJhZc+MqKmbMAQQQQAABBGwXIJjZTkqDVMyYAwgggAACCFgTCAQz/6uDfPpi7qioKGstcRUCfgF9L6m+C9T/3s/A3AIGAQQQQAABBBYnEPjjOTw8HPvjx4+i2NhY57y0cXEGnGWjgNfr7Vu2bFlPSkqK18ZmaQoBBBBAAAFXCFDVcMUwc5MIIIAAAgggEA4CBLNwGCX6iAACCCCAAAKuECCYuWKYuUkEEEAAAQQQCAcBglk4jBJ9RAABBBBAAAFXCBDMXDHM3CQCCCCAAAIIhIMAwSwcRok+IoAAAggggIArBAhmrhhmbhIBBBBAAAEEwkHgXwKbrE4uQTXXAAAAAElFTkSuQmCC" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"widgets.Button(description='Click me')" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"[Index](Index.ipynb) - [Back](Widget Basics.ipynb) - [Next](Widget Events.ipynb)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.4.3+" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment