# Notebooks

Notebooks provide a flexible computation environment for data analysis, connecting Redivis tables to the scientific compute stack in [Python](/reference/workflows/notebooks/python-notebooks.md), [R](/reference/workflows/notebooks/r-notebooks.md),  [Stata](/reference/workflows/notebooks/stata-notebooks.md), and [SAS](/reference/workflows/notebooks/sas-notebooks.md). 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="/files/WO6l5YbgObNheYX5lZdh" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
See our [Analyze data in notebooks](/guides/analyze-data-in-a-workflow/work-with-data-in-notebooks.md) 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>


---

# 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://docs.redivis.com/reference/workflows/notebooks.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.
