<jupyter_start><jupyter_text>Fun with Widgets 1. Run all the cells and see what happens! 2. Change the program to do something you want!<jupyter_code>from __future__ import print_function
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets<jupyter_output><empty_output><jupyter_text><jupyter_code>def repeat_name(name, times):
    return print(name*times)
interact(repeat_name, name = 'alex', times = (0,2000));
def repetition_parrot(words):
    return print(f"\n{words}\n\nI'm a parrot!")

interact(repetition_parrot, words = 'Hello there!');<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10662358642972536, 'fraction_numerical': 0.011308562197092083, 'mean_word_length': 7.732394366197183, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '108075', 'license': 'MIT', 'n_tokens_mistral': 217, 'n_tokens_neox': 205, 'n_words': 54, 'path': 'Project_templates/Template_03.ipynb', 'repo_name': 'lperezmo/scientific-computing-middle-school-version', 'size': '619'}