<jupyter_start><jupyter_text>Multiple widgetsCARTOframes provides the ability to add multiple widgets to a Layer. This example uses two formula widgets to count the number of pedestrians and cyclists involved in collisions and a category widget describing the type of collisions. You can zoom and/or pan the map to update widget values. In addition, if you filter on a category, the formula widgets will update to reflect the values of that category in the current map view.<jupyter_code>from cartoframes.auth import set_default_credentials

set_default_credentials('car<PASSWORD>')
from cartoframes.viz import Layer, formula_widget, category_widget

Layer(
    'seattle_collisions',
    widgets=[
        formula_widget(
            'pedcount',
            'sum',
            title='Pedestrians Involved'
        ),
        formula_widget(
            'pedcylcount',
            'sum',
            title='Cyclists Involved'
        ),
        category_widget(
            'collisiontype',
            title='Collision Type'
        )
    ]
)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0625, 'fraction_numerical': 0.0, 'mean_word_length': 2.959409594095941, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '574795', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 291, 'n_tokens_neox': 275, 'n_words': 102, 'path': 'docs/examples/data_visualization/widgets/multiple_widgets.ipynb', 'repo_name': 'CartoDB/cartoframes', 'size': '1070'}