# Notebooks

Notebooks provide a flexible computation environment for data analysis, connecting Redivis tables to the scientific compute stack in [Python](https://docs.redivis.com/reference/workflows/notebooks/python-notebooks), [R](https://docs.redivis.com/reference/workflows/notebooks/r-notebooks),  [Stata](https://docs.redivis.com/reference/workflows/notebooks/stata-notebooks), and [SAS](https://docs.redivis.com/reference/workflows/notebooks/sas-notebooks). Redivis notebooks are built on top of [Jupyter notebooks](https://jupyter.org/) and the `.ipynb` notebook format.

From within a notebook, you will be able to query and analyze any table within your workflow, and (optionally) generate an output table from the notebook. Because data referenced in a notebook never leaves Redivis, you can securely analyze data that would otherwise be bound by export restrictions.

<figure><img src="https://1672950126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVodLwUXgJUGcm5Cvso%2Fuploads%2FsVBTK0gcTvON35IXV0hS%2FScreenshot%202024-12-03%20at%2012.23.57%E2%80%AFPM_out.png?alt=media&#x26;token=cba004cf-89e5-41f1-bc4f-48e356533216" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
See our [Analyze data in notebooks](https://docs.redivis.com/guides/analyze-data-in-a-workflow/work-with-data-in-notebooks) guide for a step-by-step walkthrough of using notebooks on Redivis.
{% endhint %}

## Notebook node states

As you work in a workflow, nodes colors and symbols will change on the tree view to help you keep track of your work progress.

<table><thead><tr><th width="162.33333333333331">State</th><th width="136">Display</th><th>Details</th></tr></thead><tbody><tr><td><strong>Starting</strong></td><td>Spinning circular icon</td><td>The notebook is being provisioned and will be available for use once it has started.</td></tr><tr><td><strong>Running</strong></td><td>Purple dot on the node corner</td><td>The notebook has started and cells can be executed. It will continue running until it is stopped or times out. </td></tr><tr><td><strong>Stopped</strong></td><td>Grey background</td><td>The notebook has stopped and only a read-only view is available. </td></tr><tr><td><strong>Errored</strong></td><td>Red exclamation icon</td><td>An error has occurred during the startup process or an issue has happened requiring a restart.</td></tr><tr><td><strong>Stale</strong></td><td>Yellow background</td><td>An upstream table has been changed since the notebook but last started.</td></tr><tr><td><strong>Incomplete access</strong></td><td>All black background, or dashed borders</td><td>You don't have full access the node. Click on the <strong>Incomplete access</strong> button in the top bar to begin applying for access to the relevant datasets.</td></tr></tbody></table>
