This example illustrate how to publish a layout of map visualizations.
Note: CARTO Account credentials are needed to reproduce this example. https://carto.com/signup
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')
Out[3]: