#!/usr/bin/env python # coding: utf-8 # ## Publish a visualization of a layout # # This example illustrates how to publish a layout of map visualizations. # # >_Note: You'll need your [CARTO Account](https://carto.com/signup) credentials to reproduce this example._ # In[1]: from cartoframes.auth import set_default_credentials from cartoframes.viz import Map, Layer, Layout, basic_style, color_category_style set_default_credentials('creds.json') # In[2]: layout_viz = Layout([ Map(Layer('public_table')), Map(Layer('private_table')) ]) # In[3]: layout_viz.publish( 'layout_public_private_table', password='1234', if_exists='replace')