<jupyter_start><jupyter_text>Multiple popup eventsPopups provide information about features through either `click` or `hover` interactivity events. Features can listen to both events or multiple properties from the same event. The attributes provided in the definition use the [CARTO VL expressions syntax](https://carto.com/developers/carto-vl/reference/cartoexpressions).For more information on popups, run `help(Popup)`.In this example, there are two different definitions for popup information depending on whether it is a `hover` or `click` event.<jupyter_code>from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map, Layer, Popup

set_default_credentials('cartoframes')
Map(
    Layer(
        'countries_africa',
        popup=Popup({
            'hover': {
                'title': 'Country',
                'value': '$name'
            },
            'click': [{
                'title': 'Population',
                'value': '$pop_est'
            },{
                'title': 'GDP',
                'value': '$gdp_md_est'
            }]
        })
    )
)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10115350488021295, 'fraction_numerical': 0.0, 'mean_word_length': 2.698360655737705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '21973', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 313, 'n_tokens_neox': 298, 'n_words': 94, 'path': 'examples/popups/multiple_popup_events.ipynb', 'repo_name': 'jorisvandenbossche/cartoframes', 'size': '1127'}