# Version history

With version history, you can review and restore previous versions of notebooks in your workbook. To access the version history of a workbook, you need edit access to the workbook.

### New versions are automatically created

All changes you make to notebook files are automatically saved and a new version (attributed to the user that made the change) is created automatically as well. This happens every minute when there are new changes.

### Access version history

You can access the version history of a workbook in two ways:

* When in the editor, click on "Last edit was ... ago" in the toolbar:<br>

  <figure><img src="/files/FYDLVFSwnl3jMXCMJ4dn" alt=""><figcaption></figcaption></figure>
* When in the editor, click on "File > View version history".

You now land in a new view with an overview of all previous version of the notebook on the right hand side. If there are multiple notebooks in your workbook, you can cycle through the version history of every notebook separately by clicking on the notebook file name in the navbar.

### Restoring a version

You can restore an older version of the notebook by clicking on the three dots next to a version and selecting "Restore this version":\
\
![](/files/SNXdz8xdqUlEWkBk7quc)

This is a safe operation: the restored version is simply a new version in the version history. You can simply undo the operation by restoring to a version from before the restored version (pretty meta).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://datalab-docs.datacamp.com/work/version-history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
