<jupyter_start><jupyter_text>Popup titles and formatPopups provide information about features through either `click` or `hover` interactivity events. Features can listen to both events or multiple properties from the same event.For more information on popups, run `help(Popup)`.In this example, the `click` and `hover` events show attributes from the Layer with custom titles and formats.<jupyter_code>from cartoframes.auth import set_default_credentials

set_default_credentials('cartoframes')
from cartoframes.viz import Layer, basic_style, popup_element

Layer(
    'spain_populated_places',
    basic_style(size=10),
    popup_hover=[
        popup_element('name', 'City'),
        popup_element('pop_max', title='Rounded population', format=',.2r')
    ]
)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08849557522123894, 'fraction_numerical': 0.0037926675094816687, 'mean_word_length': 5.947368421052632, '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': '427209', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 232, 'n_tokens_neox': 223, 'n_words': 72, 'path': 'docs/examples/data_visualization/popups/popup_titles_and_format.ipynb', 'repo_name': 'CartoDB/cartoframes', 'size': '791'}