<jupyter_start><jupyter_text>Publish a public visualizationThis example illustrate how to publish a public visualizationRead more about Maps API Keys: https://carto.com/developers/auth-api/guides/types-of-API-Keys/> Note: CARTO Account credentials are needed to reproduce this example. https://carto.com/signup<jupyter_code>from cartoframes.auth import set_default_credentials

set_default_credentials('johnsmith', '1a2b3c4d5e6f7g8h9i0j')
import geopandas

df = geopandas.read_file('../files/sustainable_palm_oil_production_mills.geojson')
df.head()
from cartoframes.data import Dataset

ds = Dataset(df)
ds.upload(table_name='sustainable_palm_oil_production_mills', if_exists=Dataset.IF_EXISTS_REPLACE)
ds.update_dataset_info(privacy=Dataset.PRIVACY_PUBLIC)
from cartoframes.viz import Map, Layer

map_viz = Map(Layer(ds))
map_viz.publish(name='sustainable_palm_oil_production_mills_map')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09249183895538629, 'fraction_numerical': 0.01088139281828074, 'mean_word_length': 8.68421052631579, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '503829', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 337, 'n_tokens_neox': 324, 'n_words': 56, 'path': 'examples/publish_and_share/publish_a_public_visualization.ipynb', 'repo_name': 'jorisvandenbossche/cartoframes', 'size': '919'}