<jupyter_start><jupyter_text>Lista de Widgets<jupyter_code>import ipywidgets as widgets
widgets.Widget.widget_types.values()
widgets.FloatSlider(value=7.5, min=5.0, max=10.0, step=0.1)
widgets.FloatSlider(value=7.5, min=5.0, max=10.0, step=0.1, orientation='vertical')
widgets.FloatProgress(value=7.5, min=5.0, max=10.0, description='Text:')
widgets.BoundedFloatText(value=7.5, min=5.0, max=10.0)
widgets.FloatText(value=7.5)
widgets.ToggleButton(description='Click me', value=True)
widgets.Checkbox(description='Click me', value=True)
widgets.Valid(value=True)
from IPython.display import display

w = widgets.Dropdown(options={'One':1, 'Two':2}, value=2, description='Number:')
display(w)
w.value
widgets.RadioButtons(description='Pizza topping:', options=['Pepperoni', 'Anchovies'])
widgets.Select(description='OS:', options=['Windows', 'Linux', 'OSX'])
widgets.SelectMultiple(description='Fruits', options=['Apples', 'Oranges', 'Pears'])
widgets.Text(description='Text:', value='Hello World!')
widgets.Textarea(description='Text:', value='Hello World!')
widgets.HTML(value='Hello <b>World!</b>')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1886625332152347, 'fraction_numerical': 0.03277236492471213, 'mean_word_length': 10.3, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '532399', 'license': 'Apache-2.0', 'n_tokens_mistral': 423, 'n_tokens_neox': 406, 'n_words': 62, 'path': 'Python/Python-Completo/Python Completo/Notebooks Traduzidos/Untitled.ipynb', 'repo_name': 'Enp256/udemy', 'size': '1129'}