{"id":6283,"date":"2017-01-19T15:19:25","date_gmt":"2017-01-19T14:19:25","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=6283"},"modified":"2017-01-19T15:19:25","modified_gmt":"2017-01-19T14:19:25","slug":"how-to-list-all-widget-types-in-ipywidgets","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=6283","title":{"rendered":"How to list all widget types in ipywidgets"},"content":{"rendered":"<p>There are lots of Widgets in <a href=\"https:\/\/ipywidgets.readthedocs.io\/en\/latest\/\">ipywidgets<\/a>. Here&#8217;s how to list them<\/p>\n<pre>from ipywidgets import *\r\nwidget.Widget.widget_types\r\n<\/pre>\n<p>At the time of writing, this gave me<\/p>\n<pre>{'Jupyter.Accordion': ipywidgets.widgets.widget_selectioncontainer.Accordion,\r\n 'Jupyter.BoundedFloatText': ipywidgets.widgets.widget_float.BoundedFloatText,\r\n 'Jupyter.BoundedIntText': ipywidgets.widgets.widget_int.BoundedIntText,\r\n 'Jupyter.Box': ipywidgets.widgets.widget_box.Box,\r\n 'Jupyter.Button': ipywidgets.widgets.widget_button.Button,\r\n 'Jupyter.Checkbox': ipywidgets.widgets.widget_bool.Checkbox,\r\n 'Jupyter.ColorPicker': ipywidgets.widgets.widget_color.ColorPicker,\r\n 'Jupyter.Controller': ipywidgets.widgets.widget_controller.Controller,\r\n 'Jupyter.ControllerAxis': ipywidgets.widgets.widget_controller.Axis,\r\n 'Jupyter.ControllerButton': ipywidgets.widgets.widget_controller.Button,\r\n 'Jupyter.Dropdown': ipywidgets.widgets.widget_selection.Dropdown,\r\n 'Jupyter.FlexBox': ipywidgets.widgets.widget_box.FlexBox,\r\n 'Jupyter.FloatProgress': ipywidgets.widgets.widget_float.FloatProgress,\r\n 'Jupyter.FloatRangeSlider': ipywidgets.widgets.widget_float.FloatRangeSlider,\r\n 'Jupyter.FloatSlider': ipywidgets.widgets.widget_float.FloatSlider,\r\n 'Jupyter.FloatText': ipywidgets.widgets.widget_float.FloatText,\r\n 'Jupyter.HTML': ipywidgets.widgets.widget_string.HTML,\r\n 'Jupyter.Image': ipywidgets.widgets.widget_image.Image,\r\n 'Jupyter.IntProgress': ipywidgets.widgets.widget_int.IntProgress,\r\n 'Jupyter.IntRangeSlider': ipywidgets.widgets.widget_int.IntRangeSlider,\r\n 'Jupyter.IntSlider': ipywidgets.widgets.widget_int.IntSlider,\r\n 'Jupyter.IntText': ipywidgets.widgets.widget_int.IntText,\r\n 'Jupyter.Label': ipywidgets.widgets.widget_string.Label,\r\n 'Jupyter.PlaceProxy': ipywidgets.widgets.widget_box.PlaceProxy,\r\n 'Jupyter.Play': ipywidgets.widgets.widget_int.Play,\r\n 'Jupyter.Proxy': ipywidgets.widgets.widget_box.Proxy,\r\n 'Jupyter.RadioButtons': ipywidgets.widgets.widget_selection.RadioButtons,\r\n 'Jupyter.Select': ipywidgets.widgets.widget_selection.Select,\r\n 'Jupyter.SelectMultiple': ipywidgets.widgets.widget_selection.SelectMultiple,\r\n 'Jupyter.SelectionSlider': ipywidgets.widgets.widget_selection.SelectionSlider,\r\n 'Jupyter.Tab': ipywidgets.widgets.widget_selectioncontainer.Tab,\r\n 'Jupyter.Text': ipywidgets.widgets.widget_string.Text,\r\n 'Jupyter.Textarea': ipywidgets.widgets.widget_string.Textarea,\r\n 'Jupyter.ToggleButton': ipywidgets.widgets.widget_bool.ToggleButton,\r\n 'Jupyter.ToggleButtons': ipywidgets.widgets.widget_selection.ToggleButtons,\r\n 'Jupyter.Valid': ipywidgets.widgets.widget_bool.Valid,\r\n 'jupyter.DirectionalLink': ipywidgets.widgets.widget_link.DirectionalLink,\r\n 'jupyter.Link': ipywidgets.widgets.widget_link.Link}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There are lots of Widgets in ipywidgets. Here&#8217;s how to list them from ipywidgets import * widget.Widget.widget_types At the time of writing, this gave me {&#8216;Jupyter.Accordion&#8217;: ipywidgets.widgets.widget_selectioncontainer.Accordion, &#8216;Jupyter.BoundedFloatText&#8217;: ipywidgets.widgets.widget_float.BoundedFloatText, &#8216;Jupyter.BoundedIntText&#8217;: ipywidgets.widgets.widget_int.BoundedIntText, &#8216;Jupyter.Box&#8217;: ipywidgets.widgets.widget_box.Box, &#8216;Jupyter.Button&#8217;: ipywidgets.widgets.widget_button.Button, &#8216;Jupyter.Checkbox&#8217;: ipywidgets.widgets.widget_bool.Checkbox, &#8216;Jupyter.ColorPicker&#8217;: ipywidgets.widgets.widget_color.ColorPicker, &#8216;Jupyter.Controller&#8217;: ipywidgets.widgets.widget_controller.Controller, &#8216;Jupyter.ControllerAxis&#8217;: ipywidgets.widgets.widget_controller.Axis, &#8216;Jupyter.ControllerButton&#8217;: ipywidgets.widgets.widget_controller.Button, &#8216;Jupyter.Dropdown&#8217;: ipywidgets.widgets.widget_selection.Dropdown, &#8216;Jupyter.FlexBox&#8217;: ipywidgets.widgets.widget_box.FlexBox, &#8216;Jupyter.FloatProgress&#8217;: ipywidgets.widgets.widget_float.FloatProgress, &#8216;Jupyter.FloatRangeSlider&#8217;: ipywidgets.widgets.widget_float.FloatRangeSlider, &#8216;Jupyter.FloatSlider&#8217;: ipywidgets.widgets.widget_float.FloatSlider, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[40,7,31,24],"tags":[],"class_list":["post-6283","post","type-post","status-publish","format-standard","hentry","category-free-software","category-programming","category-python","category-sage-interactions"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-1Dl","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/6283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6283"}],"version-history":[{"count":2,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/6283\/revisions"}],"predecessor-version":[{"id":6288,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/6283\/revisions\/6288"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}