Created
February 12, 2016 23:18
-
-
Save jdfreder/a5846a3c5883c2551eb0 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_string.Text'>, <class 'ipywidgets.widgets.widget_selection.Select'>, <class 'ipywidgets.widgets.widget_bool.Checkbox'>, <class 'ipywidgets.widgets.widget_bool.Valid'>, <class 'ipywidgets.widgets.widget_float.FloatText'>, <class 'ipywidgets.widgets.widget_string.Latex'>, <class 'ipywidgets.widgets.widget_selection.RadioButtons'>, <class 'ipywidgets.widgets.widget_controller.Button'>, <class 'ipywidgets.widgets.widget_float.FloatProgress'>, <class 'ipywidgets.widgets.widget_color.ColorPicker'>, <class 'ipywidgets.widgets.widget_box.Proxy'>, <class 'ipywidgets.widgets.widget_string.Textarea'>, <class 'ipywidgets.widgets.widget_selection.SelectMultiple'>, <class 'ipywidgets.widgets.widget_selection.SelectionSlider'>, <class 'ipywidgets.widgets.widget_int.BoundedIntText'>, <class 'ipywidgets.widgets.widget_selectioncontainer.Accordion'>, <class 'ipywidgets.widgets.widget_float.FloatSlider'>, <class 'ipywidgets.widgets.widget_selection.ToggleButtons'>, <class 'ipywidgets.widgets.widget_box.FlexBox'>, <class 'ipywidgets.widgets.widget_bool.ToggleButton'>, <class 'ipywidgets.widgets.widget_selectioncontainer.Tab'>, <class 'ipywidgets.widgets.widget_selection.Dropdown'>, <class 'ipywidgets.widgets.widget_int.IntProgress'>, <class 'ipywidgets.widgets.widget_controller.Axis'>, <class 'ipywidgets.widgets.widget_button.Button'>, <class 'ipywidgets.widgets.widget_box.Box'>, <class 'ipywidgets.widgets.widget_int.IntText'>, <class 'ipywidgets.widgets.widget_image.Image'>, <class 'ipywidgets.widgets.widget_box.PlaceProxy'>, <class 'ipywidgets.widgets.widget_int.IntRangeSlider'>, <class 'ipywidgets.widgets.widget_int.IntSlider'>, <class 'ipywidgets.widgets.widget_float.BoundedFloatText'>, <class 'ipywidgets.widgets.widget_string.HTML'>, <class 'ipywidgets.widgets.widget_controller.Controller'>, <class 'ipywidgets.widgets.widget_float.FloatRangeSlider'>])" | |
] | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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+ZuuYAAANn0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzH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ECBAgQIBARMMwijxCDAAECBAgQIGCY6QABAgQIECBAICJgmEUeIQYBAgQIECBAwDDTAQIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAg+awwEKjkeEhAAAAABJRU5ErkJggg==" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAwCAYAAAC7ZLZJAAACjElEQVR4Xu3WMREAAAwCseLfdG38kCrgQgd2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjDzBAQIECBAgACBiIBhFilCDAIECBAgQICAYeYHCBAgQIAAAQIRAcMsUoQYBAgQIECAAAHDzA8QIECAAAECBCIChlmkCDEIECBAgAABAoaZHyBAgAABAgQIRAQMs0gRYhAgQIAAAQIEDDM/QIAAAQIECBCICBhmkSLEIECAAAECBAgYZn6AAAECBAgQIBARMMwiRYhBgAABAgQIEDDM/AABAgQIECBAICJgmEWKEIMAAQIECBAgYJj5AQIECBAgQIBARMAwixQhBgECBAgQIEDAMPMDBAgQIECAAIGIgGEWKUIMAgQIECBAgIBh5gcIECBAgAABAhEBwyxShBgECBAgQIAAAcPMDxAgQIAAAQIEIgKGWaQIMQgQIECAAAEChpkfIECAAAECBAhEBAyzSBFiECBAgAABAgQMMz9AgAABAgQIEIgIGGaRIsQgQIAAAQIECBhmfoAAAQIECBAgEBEwzCJFiEGAAAECBAgQMMz8AAECBAgQIEAgImCYRYoQgwABAgQIECBgmPkBAgQIECBAgEBEwDCLFCEGAQIECBAgQMAw8wMECBAgQIAAgYiAYRYpQgwCBAgQIECAgGHmBwgQIECAAAECEQHDLFKEGAQIECBAgAABw8wPECBAgAABAgQiAoZZpAgxCBAgQIAAAQKGmR8gQIAAAQIECEQEDLNIEWIQIECAAAECBAwzP0CAAAECBAgQiAgYZpEixCBAgAABAgQIGGZ+gAABAgQIECAQETDMIkWIQYAAAQIECBAwzPwAAQIECBAgQCAiYJhFihCDAAECBAgQIPDmKwAxXL9AHgAAAABJRU5ErkJggg==" | |
}, | |
"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": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAA3CAYAAACmYYbxAAAC6ElEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBARMMwijxCDAAECBAgQIGCY6QABAgQIECBAICJgmEUeIQYBAgQIECBAwDDTAQIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhGBB8+4ADjbFJNSAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAABNCAYAAAAM2KhWAAAEB0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBARMMwijxCDAAECBAgQIGCY6QABAgQIECBAICJgmEUeIQYBAgQIECBAwDDTAQIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAg8f4UATuDB2RcAAAAASUVORK5CYII=" | |
}, | |
"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/7AAAGeklEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBARMMwijxCDAAECBAgQIGCY6QABAgQIECBAICJgmEUeIQYBAgQIECBAwDDTAQIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZD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ChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAg8/sUAfidD9ccAAAAASUVORK5CYII=" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAACf0lEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAgYZpFHiEGAAAECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBAReA/TADB+6JFGAAAAAElFTkSuQmCC" | |
}, | |
"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/7AAAGeklEQVR4Xu3WMREAAAwCseLfdG38kCrgUgZ2jgABAgQIECBAICGwRAohCBAgQIAAAQIEzjBTAgIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABA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AECBAgQMMx0gAABAgQIECAQETDMIo8QgwABAgQIECBgmOkAAQIECBAgQCAiYJhFHiEGAQIECBAgQMAw0wECBAgQIECAQETAMIs8QgwCBAgQIECAgGGmAwQIECBAgACBiIBhFnmEGAQIECBAgAABw0wHCBAgQIAAAQIRAcMs8ggxCBAgQIAAAQKGmQ4QIECAAAECBCIChlnkEWIQIECAAAECBAwzHSBAgAABAgQIRAQMs8gjxCBAgAABAgQIGGY6QIAAAQIECBCICBhmkUeIQYAAAQIECBAwzHSAAAECBAgQIBARMMwijxCDAAECBAgQIGCY6QABAgQIECBAICJgmEUeIQYBAgQIECBAwDDTAQIECBAgQIBARMAwizxCDAIECBAgQICAYaYDBAgQIECAAIGIgGEWeYQYBAgQIECAAAHDTAcIECBAgAABAhEBwyzyCDEIECBAgAABAoaZDhAgQIAAAQIEIgKGWeQRYhAgQIAAAQIEDDMdIECAAAECBAhEBAyzyCPEIECAAAECBAgYZjpAgAABAgQIEIgIGGaRR4hBgAABAgQIEDDMdIAAAQIECBAgEBEwzCKPEIMAAQIECBAgYJjpAAECBAgQIEAgImCYRR4hBgECBAgQIEDAMNMBAgQIECBAgEBEwDCLPEIMAgQIECBAgIBhpgMECBAgQIAAgYiAYRZ5hBgECBAgQIAAAcNMBwgQIECAAAECEQHDLPIIMQgQIECAAAEChpkOECBAgAABAgQiAoZZ5BFiECBAgAABAgQMMx0gQIAAAQIECEQEDLPII8QgQIAAAQIECBhmOkCAAAECBAgQiAg8/sUAfidD9ccAAAAASUVORK5CYII=" | |
}, | |
"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": [ | |
"('Pears',)" | |
] | |
}, | |
"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 | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmYAAAAvCAYAAABJ5AYHAAALpUlEQVR4Xu2deYxNWR7Hf62KsgTTYjTDKDEawVRQtlh6MEMLWuMPyjrotrTdWFpbyzr2fV8LrWswMYOMSEQmGRqh7D22MZSlm5AYu6K7vPl9T71XXW2peu859H33fk/yzX2q7j33ns/v5NXX7yz3HWEhARIgARIgARIgARJwBIF3HPEUfAgSIAESIAESIAESIAGhMWMnIAESIAESIAESIAGHEKAxc0gg+BgkQAIkQAIkQAIkQGPGPkACJEACJEACJEACDiFAY+aQQPAxSIAESIAESIAESIDGjH2ABEiABEiABEiABBxCgMbMIYHgY5AACZAACZAACZAAjZmlPnDkyJG4mJiYlLS0tNyWqmQ1JEACzxHImzfv90+ePKkRHx9/knBIgARIwI0EaMwsRfXkyZO+2NhYKVSokKUaWQ0JkMDzBO7duyeXL1+WuLg4fnexe5AACbiSAL/cLIU1JSXFp/+Lt1QbqyEBEngVAc1OS40aNfjdxS5CAiTgSgL8crMUVhozSyBZDQnkQIDGjF2EBEjAzQRozCxFl8bM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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//PP53UWLQAACBUmAX25OZUXMnECSBgK1EEDMaBEIQ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ycQJIGAogZPQABCCRMADFzKj5i5gSSNBBAzOgBCEAgYQKImVPxETMnkKSBAGJGD0AAAgkTQMycio+YOYEkDQQQM3oAAhBImABi5lR8xMwJJGkggJjRAxCAQMIEEDOn4iNmTiBJAwHEjB6AAAQSJoCYORUfMXMCSRoIIGb0AAQgkDABxMyp+IiZE0jSQAAxowcgAIGECSBmTsVHzJxAkgYCiBk9AAEIJEwAMXMqPmLmBJI0EEDM6AEIQCBhAoiZU/ERMyeQpIEAYkYPQAACCRNAzJyKj5g5gSQNBBAzegACEEiYAGLmVHzEzAkkaSCAmNEDEIBAwgQQM6fiI2ZOIEkDAcSMHoAABBImgJg5FR8xcwJJGgggZvQABCCQMAHEzKn4iJkTSNJAADGjByAAgYQJIGZOxUfMnECSBgKIGT0AAQgkTAAxcyo+YuYEkjQQQMzoAQhAIGECiJlT8REzJ5CkgQBiRg9AAAIJE0DMnIqPmDmBJA0EEDN6AAIQSJgAYuZUfMTMCSRpIICY0QMQgEDCBBAzp+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/K6zQCAlIQAISkIAEJCCB+XTM/CWQgAQkIAEJSEACLSGgY9aSidAMCUhAAhKQgAQkoGPm74AEJCABCUhAAhJoCQEds5ZMhGZIQAISkIAEJCABHTN/ByQgAQlIQAISkEBLCOiYtWQiNEMCEpCABCQgAQnomPk7IAEJSGD2CCyYrh8ZsvvHpP5/hnzG6hKQQCEEdMwKmSjNlIAEJo7A4hnRvtFuQ47suNTfRedsSGpWl0AhBHTMCpkozZRAgQSWis0/iraPLizQ/iZNfmYaPzPaIbplyI5w5FaI3hP9d8hnrS4BCbScgI5ZyydI8yRQMIHNYvsZ0dHRrgWPY9SmPy4NXhwdFp01jcYXyDPnR+dFR07jeR+RgARaTEDHrMWTo2kSKJzARh0H4oj83L3wsYzS/GPS2CLRNjNodMk8e320RXTlDNrxUQlIoGUEdMxaNiGaI4EJIrBixnJTtEd0+ASNayZDWTcPnxMtE90zk4by7LbRJyO2NR+YYVs+LgEJtISAjllLJkIzJDCBBJ6WMf0l2jI6bQLHN+yQ2MK8Mfp29LFhH+5Tn9OZN3QcvY+OoD2bkIAEWkBAx6wFk6AJEiiIwMKxlW1JVn4ejjaOdoz2jO6L1ux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"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/fB9YA8Owz97cfY6wYJ4FL3tqzXzzrPPj5VvfrDN7lk0CEpCABCQgAQlIoAoCs6uIwiAkIAEJSEACEpCABGZpzPwjkIAEJCABCUhAApUQ0JhVMhCGIQEJSEACEpCABDRm/g1IQAISkIAEJCCBSghozCoZCMOQgAQkIAEJSEACGjP/BiQgAQlIQAISkEAlBDRmlQyEYUhAAhKQgAQkIAGNmX8DEpCABCQgAQlIoBICGrNKBsIwJCABCUhAAhKQgMbMvwEJSEACEpCABCRQCYGZNGZL5J1OjraKNoq6+5W8smFIQAISkIAEJCCBOgm0jdlmCfHiaP3o2Oju6J9oz+i66MNivJ6c4lUWyPFDouOj1aLu/twQWCgX3xztUzodlt/7ozOjU8qxq/N7XvRDtEV0b7R7NGduHlSuxUw+Ef0dLdjpv2j2L42Oih6Kdhnj/naRgAQkIAEJSEACIwl0M2YnpQfGasVOz7ey/2B09og77pTzl0UYM1p3f2RArQuWyfaX0XzR9tHjEfG+H61SYsGY0eaPMJXEP277OR0xk11jxv0wrc9EGrNx6dpPAhKQgAQkIIGRBLrG7IT0QBOdnm9mH2M2OeKOO+b85VFjzLr7IwPqXHBf9neL7or2K+fOyO+F0Qet5+yc7e+iF+b2Aa3rf8o2pmyQMds0x5+NNGbTAGxXCUhAAhKQ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wNYhPagAZ257oCIon/WQ6MmDpPFYrmYQr4KZW20p0tfpj2bddLI+hErU6YU/FOHxmK71Mi9HF0UYfRsEpCABCQgAQlIYEYJzOS/ZJrRwLyZBCQgAQlIQAIS6BsBjVnfRtz3lYAEJCABCUigWgIas2qHxsAkIAEJSEACEugbAY1Z30bc95WABCQgAQlIoFoCGrNqh8bAJCABCUhAAhLoGwGNWd9G3PeVgAQkIAEJSKBaAhqzaofGwCQgAQlIQAIS6BsBjVnfRtz3lYAEJCABCUigWgIas2qHxsAkIAEJSEACEugbAY1Z30bc95WABCQgAQlIoFoCGrNqh8bAJCABCUhAAhLoGwGNWd9G3PeVgAQkIAEJSKBaAhqzaofGwCQgAQlIQAIS6BuB/wA6MvQkFAsvnQAAAABJRU5ErkJggg==" | |
}, | |
"metadata": { | |
"isWidgetSnapshot": true | |
}, | |
"output_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//8Xg8ySHSN7o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Rok+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