> 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/guides/export-and-publish-your-work/embed-notebooks-and-tables.md).

# Embed notebooks and tables

You can share interactive notebooks and tables on external sites by embedding them directly from Redivis. Embedding can be used to showcase analyses, visualizations, and tables without requiring viewers to navigate to the notebook or table within Redivis.

Embedded content respects the same access controls as the underlying data. Embedding does not make restricted content publicly accessible.

### 1. Select content to embed

Navigate to the workflow containing the notebook or table you want to embed, and select the corresponding notebook or table node. Before embedding, make sure it contains the analysis, outputs, or data you want to share.

Any table in a workflow an be embedded, including source tables and tables generated while [working with data](/guides/analyze-data-in-a-workflow.md).&#x20;

<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%2FxsXSB4qv5xcL0O7Eeokl%2Fredivis.com_workflows_x7kh-5pvd4mbf1%20(1).png?alt=media&amp;token=6386d8fe-c903-4b34-93fe-3cda106f08a5" alt=""><figcaption></figcaption></figure></div>

### 2. Configure the embed

From the **More** menu in the top bar, select **Export** and navigate to the **Embed** tab.&#x20;

<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>

For [notebooks](/reference/workflows/notebooks/exporting-notebooks.md), choose whether code blocks should be collapsed by default in the embedded notebook view or not. Collapsing code can help focus the embedded view on the analysis results and outpus while still allowing viewers to expand the code when needed.&#x20;

For [tables](/reference/tables/exporting-tables/embedding-tables.md), choose whether the embedded table should default to showing the **Cells tab** or not. When selected, viewers will see the table's cells when the embed first loads. Otherwise, the table will default to the **Variables tab**.&#x20;

You can then choose between two options:

* **Embed code**: Use the embed code when the external site allows you to add custom HTML or embed code.
* **Embed URL**: Use them embed URL when the external site supports adding embedded content from a URL.

<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>

### 3. Add the embed

Copy the embed code or URL and add it to the appropriate location on your external site.

The embedded content remains hosted on Redivis, allowing viewers to view the analysis or data on your site while maintaining the original access requirements.

{% embed url="<https://redivis.com/workflows/x7kh-5pvd4mbf1/notebooks/2f2v-85czf33ag>" %}

{% embed url="<https://redivis.com/workflows/x7kh-5pvd4mbf1/tables/467g-0nqepj0am#cells>" %}

Viewers can select **View on Redivis** in the bottom right corner to view the original notebook or table on Redivis. They can also view them fullscreen by selecting the fullscreen icon on the bottom right.

## 4. Verify access settings

Embedded content follows the same [access controls](/reference/data-access/access-levels.md) as the underlying workflow and data. Embedding content does not make restricted data publicly accessible.

Viewers who are not signed into Redivis, or who do not meet the access requirements for the workflow or data used by the notebook, will not be able to view restricted content. Instead, they will see a message indicating the notebook or table is restricted and prompting them to sign into Redivis and meet the applicable access requirements.

For example, a viewer who has access only to the metadata of the data used in a notebook will not be able to view the notebook content that requires access to the underlying restricted data.

<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%2F81vTwHeTEaZ3iaswZjeQ%2FScreenshot%202023-12-06%20at%209.18.56%20PM_out.png?alt=media&amp;token=c1d91415-5341-49d3-ab6c-2e63e7566de9" alt=""><figcaption></figcaption></figure></div>


---

# 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/guides/export-and-publish-your-work/embed-notebooks-and-tables.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.
