---
title: "Track changes and revert to previous versions"
description: "Undo mistakes, audit changes, and create point-in-time snapshots of your data."
url: "https://www.pixeltable.com/notebooks/version-control-history"
updated: "2026-06-13"
---

# Track changes and revert to previous versions

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

- **Type:** Notebook
- **Group:** Core Operations

## 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:** `pip install pixeltable`
- **Pixeltable calls:** `pxt.create_table()`, `pxt.create_snapshot()`, `insert()`, `add_computed_column()`, `update()`, `revert()`

## A look at the code

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

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/cookbooks/core/version-control-history.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/cookbooks/core/version-control-history
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/cookbooks/core/version-control-history.ipynb
