<jupyter_start><jupyter_text>number widget  IntSlider<jupyter_code>widgets.IntSlider(
    value=7,
    min=0,
    max=10,
    step=1,
    description='Test:',
    disabled=False,
    continuous_update=False,
    orientation='horizontal',
    readout=True,
    readout_format='d'
)<jupyter_output><empty_output><jupyter_text>Float Widget<jupyter_code>widgets.FloatSlider(
    value=7.5,
    min=0,
    max=10.0,
    step=0.1,
    description='Test:',
    disabled=False,
    continuous_update=False,
    orientation='vertical',
    readout=True,
    readout_format='.2f',
)<jupyter_output><empty_output><jupyter_text>FloatLogEasy to cover a large range of positive magnitude<jupyter_code>widgets.FloatLogSlider(
    value=10,
    base=10,
    min=-10, # max exponent of base
    max=10, # min exponent of base
    step=0.2, # exponent step
    description='Log Slider'
)<jupyter_output><empty_output><jupyter_text>IntRange<jupyter_code>w = widgets.IntRangeSlider(
    value=[5, 7],
    min=0,
    max=10,
    step=1,
    description='Test:',
    disabled=False,
    continuous_update=False,
    orientation='horizontal',
    readout=True,
    readout_format='d',
)

def f(x, y):
    return y - x

interact(f, x=5, y=6)<jupyter_output><empty_output><jupyter_text>Float Range<jupyter_code>widgets.FloatRangeSlider(
    value=[5, 7.5],
    min=0,
    max=10.0,
    step=0.1,
    description='Test:',
    disabled=False,
    continuous_update=False,
    orientation='horizontal',
    readout=True,
    readout_format='.1f',
)<jupyter_output><empty_output><jupyter_text>IntProgress<jupyter_code>widgets.IntProgress(
    value=7,
    min=0,
    max=10,
    step=1,
    description='Loading:',
    bar_style='', # 'success', 'info', 'warning', 'danger' or ''
    orientation='horizontal'
)<jupyter_output><empty_output><jupyter_text>FloatProgress<jupyter_code>widgets.FloatProgress(
    value=7.5,
    min=0,
    max=10.0,
    step=0.1,
    description='Loading:',
    bar_style='info',
    orientation='horizontal'
)<jupyter_output><empty_output><jupyter_text>Bounded Int<jupyter_code>widgets.BoundedIntText(
    value=7,
    min=0,
    max=10,
    step=1,
    description='Text:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>Text Widget  BoundedFloatText<jupyter_code>widgets.BoundedFloatText(
    value=7.5,
    min=0,
    max=10.0,
    step=0.1,
    description='Text:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>IntText<jupyter_code>widgets.IntText(
    value=7,
    description='Any:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>FloatText<jupyter_code>widgets.FloatText(
    value=7.5,
    description='Any:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>Text<jupyter_code>interact(f, x=widgets.Text('Hi'));
interact(f, x='Hi');<jupyter_output><empty_output><jupyter_text>TextArea<jupyter_code>widgets.Textarea(
    value='<NAME>',
    placeholder='Type something',
    description='String:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>Boolean Widget  ToggleButton<jupyter_code>widgets.ToggleButton(
    value=False,
    description='Click me',
    disabled=False,
    button_style='', # 'success', 'info', 'warning', 'danger' or ''
    tooltip='Description',
    icon='check'
)<jupyter_output><empty_output><jupyter_text>Valid Widget<jupyter_code>widgets.Valid(
    value=False,
    description='Valid!',
)<jupyter_output><empty_output><jupyter_text>Checkbox<jupyter_code>interact(f, x=widgets.Checkbox(True));
interact(f, x=True);<jupyter_output><empty_output><jupyter_text>Selection Widget  Dropdown<jupyter_code>widgets.Dropdown(
    options=['1', '2', '3'],
    value='2',
    description='Number:',
    disabled=False,
)
interact(f, x=['A', 'B']);<jupyter_output><empty_output><jupyter_text>mapping option to values<jupyter_code>interact(f, x=widgets.Dropdown(options=[('A', 0), ('B', 1)], value=0));<jupyter_output><empty_output><jupyter_text>Or<jupyter_code>interact(f, x=widgets.Dropdown(options={'A':0, 'B':1}, value=0));<jupyter_output><empty_output><jupyter_text>Radio Button<jupyter_code>widgets.RadioButtons(
    options=['pepperoni', 'pineapple', 'anchovies'],
#     value='pineapple',
    description='Pizza topping:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>Select<jupyter_code>widgets.Select(
    options=['Linux', 'Windows', 'OSX'],
    value='OSX',
    # rows=10,
    description='OS:',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>Select Range Slider<jupyter_code>import datetime
dates = [datetime.date(2015,i,1) for i in range(1,13)]
options = [(i.strftime('%b'), i) for i in dates]
widgets.SelectionRangeSlider(
    options=options,
    index=(0,11),
    description='Months (2015)',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>ToggleButtons<jupyter_code>widgets.ToggleButtons(
    options=['Slow', 'Regular', 'Fast'],
    description='Speed:',
    disabled=False,
    button_style='', # 'success', 'info', 'warning', 'danger' or ''
    tooltips=['Description of slow', 'Description of regular', 'Description of fast'],
#     icons=['check'] * 3
)<jupyter_output><empty_output><jupyter_text>SelectMultiple<jupyter_code>widgets.SelectMultiple(
    options=['Apples', 'Oranges', 'Pears'],
    value=['Oranges'],
    #rows=10,
    description='Fruits',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>ReadOnly Widget  Label<jupyter_code>widgets.VBox([widgets.Label(value="The $m$ in $E=mc^2$:"), widgets.FloatSlider()])<jupyter_output><empty_output><jupyter_text>HTML<jupyter_code>widgets.HTML(
    value="Hello <b>World</b>",
    placeholder='Some HTML',
    description='Some HTML',
)<jupyter_output><empty_output><jupyter_text>HTML Math<jupyter_code>widgets.HTMLMath(
    value=r"Some math and <i>HTML</i>: \(x^2\) and $$\frac{x+1}{x-1}$$",
    placeholder='Some HTML',
    description='Some HTML',
)<jupyter_output><empty_output><jupyter_text>Image<jupyter_code>file = open("test_flow.png", "rb")
image = file.read()
widgets.Image(
    value=image,
    format='png',
    width=600,
    height=800,
)<jupyter_output><empty_output><jupyter_text>Picker  DatePicker<jupyter_code>widgets.DatePicker(
    description='Pick a Date',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>ColorPicker<jupyter_code>widgets.ColorPicker(
    concise=False,
    description='Pick a color',
    value='blue',
    disabled=False
)<jupyter_output><empty_output><jupyter_text>Button<jupyter_code>widgets.Button(
    description='Click me',
    disabled=False,
    button_style='', # 'success', 'info', 'warning', 'danger' or ''
    tooltip='Click me',
    icon='check'
)<jupyter_output><empty_output><jupyter_text>Play Animation<jupyter_code>play = widgets.Play(
#     interval=10,
    value=50,
    min=0,
    max=100,
    step=1,
    description="Press play",
    disabled=False
)
slider = widgets.IntSlider()
widgets.jslink((play, 'value'), (slider, 'value'))
widgets.HBox([play, slider])<jupyter_output><empty_output><jupyter_text>Container and Layout  Box<jupyter_code>items = [widgets.Label(str(i)) for i in range(4)]
widgets.Box(items)<jupyter_output><empty_output><jupyter_text>HBox<jupyter_code>items = [widgets.Label(str(i)) for i in range(4)]
widgets.HBox(items)<jupyter_output><empty_output><jupyter_text>VBox<jupyter_code>items = [widgets.Label(str(i)) for i in range(4)]
left_box = widgets.VBox([items[0], items[1]])
right_box = widgets.VBox([items[2], items[3]])
widgets.HBox([left_box, right_box])<jupyter_output><empty_output><jupyter_text>Accordion<jupyter_code>accordion = widgets.Accordion(children=[widgets.IntSlider(), widgets.Text()])
accordion.set_title(0, 'Slider')
accordion.set_title(1, 'Text')
accordion<jupyter_output><empty_output><jupyter_text>Tabs<jupyter_code>tab_contents = ['P0', 'P1', 'P2', 'P3', 'P4']
children = [widgets.Text(description=name) for name in tab_contents]
tab = widgets.Tab()
tab.children = children
for i in range(len(children)):
    tab.set_title(i, str(i))
tab
tab.selected_index = 0
tab.selected_index = None<jupyter_output><empty_output><jupyter_text>Nested Container<jupyter_code>tab_nest = widgets.Tab()
tab_nest.children = [accordion, accordion]
tab_nest.set_title(0, 'An accordion')
tab_nest.set_title(1, 'Copy of the accordion')
tab_nest<jupyter_output><empty_output><jupyter_text>Animation  Play `Play` is usually combined with `.jslink`<jupyter_code>play = widgets.Play(
#     interval=10,
    value=50,
    min=0,
    max=100,
    step=1,
    description="Press play",
    disabled=False
)
slider = widgets.IntSlider()
widgets.jslink((play, 'value'), (slider, 'value'))
widgets.HBox([play, slider])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1578826237054085, 'fraction_numerical': 0.016800920598388953, 'mean_word_length': 6.224438902743142, 'pattern_counts': {'":': 0, '<': 162, '<?xml version=': 0, '>': 162, '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': '39', 'dir': 'jupyter-structured-clean-dedup', 'id': '544334', 'license': 'MIT', 'n_tokens_mistral': 3353, 'n_tokens_neox': 3233, 'n_words': 435, 'path': '0015_jupyter widgets/widgetInDetail.ipynb', 'repo_name': 'junjiecai/jupyter_demos', 'size': '8695'}