Track changes and revert to previous versions

Undo mistakes, audit changes, and create point-in-time snapshots of your data.

Core Operations · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

What it covers

  • View version history with history() and get_versions()
  • Access specific versions with pxt.get_table('table:N')
  • Undo changes with revert()
  • Create point-in-time snapshots with pxt.create_snapshot()

What it uses

Install
terminal
pip install pixeltable
Pixeltable calls
pxt.create_table()pxt.create_snapshot()insert()add_computed_column()update()revert()

A look at the code

version-control-history.ipynb
# Create table (version 0)
products = pxt.create_table(
'version_demo/products',
{'name': pxt.String, 'price': pxt.Float, 'category': pxt.String},
)

One cell of the notebook, copied as it is. Open it in Colab for the rest.

Browse all 103