# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ## Change CARTO table privacy
#
# This example illustrates how to change the privacy of a CARTO table.
#
# _Note: You'll need [CARTO Account](https://carto.com/signup) credentials to reproduce this example._

# +
from cartoframes.auth import set_default_credentials

set_default_credentials('creds.json')

# +
from cartoframes import update_privacy_table, describe_table

update_privacy_table('my_table', 'private')

describe_table('my_table')['privacy']

# +
update_privacy_table('my_table', 'public')

describe_table('my_table')['privacy']

StarcoderdataJupyterScriptsDedupFiltered