<jupyter_start><jupyter_text>Voila test<jupyter_code>import ipywidgets as widgets

slider = widgets.FloatSlider(description='$x$', value=4)
text = widgets.FloatText(disabled=True, description='$x^2$')

def compute(*ignore):
    text.value = str(slider.value ** 2)

slider.observe(compute, 'value')

widgets.VBox([slider, text])
a = 40+2
a
text
out = widgets.Output(layout={'border': '1px solid black'})
button = widgets.Button(
    description='Click me',
    disabled=False,
    button_style='success', # 'success', 'info', 'warning', 'danger' or ''
    tooltip='Click me',
    icon='check' # (FontAwesome names without the `fa-` prefix)
)
def on_click(value):
    with out:
        print(f'clicked : {value}')
button.on_click(on_click)
button
out<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16066838046272494, 'fraction_numerical': 0.008997429305912597, 'mean_word_length': 5.491666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '310571', 'license': 'Apache-2.0', 'n_tokens_mistral': 282, 'n_tokens_neox': 275, 'n_words': 58, 'path': 'jupyter/notebooks/dev_jupyter_notebooks/voila-tests.ipynb', 'repo_name': 'samarthdd/cdr-plugin-folder-to-folder', 'size': '778'}