> For the complete documentation index, see [llms.txt](https://docs.redivis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.redivis.com/reference/workflows/notebooks/exporting-notebooks.md).

# Exporting notebooks

After completing an analysis in a [notebook](/reference/workflows/notebooks.md), you can export it in several formats for use outside of Redivis. You can download the notebook as a file or embed it in external content to share your analysis and results.&#x20;

Notebook exports include the notebook's code and, where applicable, its outputs. Review your notebook to ensure it does not contain information you do not intend to share.

## Download

To download a notebook, navigate to the workflow containing the notebook and select the corresponding notebook node. From the notebook's **More** menu in the top bar, select **Export**.

<div data-with-frame="true"><figure><img src="https://1672950126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVodLwUXgJUGcm5Cvso%2Fuploads%2FbySq9sWJK6qE1dLP8fu1%2Fredivis.com_workflows_x7kh-5pvd4mbf1%20(2).png?alt=media&amp;token=ed07139e-7b63-4309-9576-b39759d5e25b" alt=""><figcaption></figcaption></figure></div>

Before downloading, you can choose whether to include the notebook's outputs. Including outputs adds the results generated by the notebook to the exported file, while excluding them exports the notebook without its current outputs.

If the notebook references restricted data, Redivis displays a warning before the notebook is downloaded. Review the notebook and its outputs before exporting to ensure that you are authorized to share the information contained in the exported file.

The export options allow you to download the notebook in several common formats, including:

* Jupyter Notebook (`.ipynb`)
* PDF (`.pdf`)
* HTML (`.html`)
* Script (`.py`, `.r`, `.dta`, `.sas`)

## Embed

Navigate to the workflow containing the notebook you want to embed and select the corresponding notebook node. From the notebook's **More** menu in the top bar, select **Export**, then navigate to the **Embed** tab.

<div data-with-frame="true"><figure><img src="https://1672950126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVodLwUXgJUGcm5Cvso%2Fuploads%2FILG4vHFTS1xCTKv1rCgO%2Fredivis.com_workflows_x7kh-5pvd4mbf1%20(3).png?alt=media&amp;token=dd17d084-dbbd-4865-90a4-b3492783cffc" alt=""><figcaption></figcaption></figure></div>

Here you can choose whether the code cells should be collapsed by default when the notebook is embedded.

You can then copy the **Embed URL** to add the notebook to an external site that supports embed links. You can also copy the **Embed code** to embed the notebook in a page that supports custom HTML or embed code.

At any point, you can select **View on Redivis** in the bottom right corner to view the original notebook in its Redivis workflow.

You can also view this notebook in fullscreen by selecting the fullscreen icon on the bottom right overlay.

{% embed url="<https://redivis.com/embed/notebooks/2f2v-85czf33ag?collapseCode=true>" %}

#### Access

Public notebook content can be viewed by anyone viewing the embedded content. However, if a notebook contains restricted data, normal [access rules](/reference/data-access/access-levels.md) will continue to apply.

To view restricted content, users must have a Redivis account and be signed in. Users who meet the applicable access requirements will be able to view the embedded notebook.

Users who do not have the required access will see that the notebook contains restricted data and must sign in to Redivis and [meet applicable access requirements](/guides/discover-and-access-data/apply-to-access-restricted-data.md) to view its contents.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.redivis.com/reference/workflows/notebooks/exporting-notebooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
