> For the complete documentation index, see [llms.txt](https://docs.zerve.ai/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerve.ai/guide/notebook-view/deployment/streamlit-deployment.md).

# Streamlit Deployment

### Notebook Code

You need to create variables/objects needed in your Streamlit app in a notebook. This can be later reference in the streamlit app code.

For example, in the screenshot below a df called employees is created in a notebook block

<figure><img src="/files/OZjwyW5rfpMPf0BRxkJZ" alt=""><figcaption></figcaption></figure>

### Referencing variables

To reference a variable/object in the canvas use the following code:

```
from zerve import variable
name = variable ("block_name", "variable_name")
```

In the above example, our block name is employee\_data and the required df is stored as employees. In this example the code to reference the df is:

```
from zerve import variable
employees = variable ("employee_data", "employees")
```

### Instance Type

You can chose any instance type for your deployment.&#x20;

### Example

The following video shows how we can deploy the Streamlit app.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIQKNeqjEeOp9UwUcB9R9%2Fuploads%2FSW8Q5siai6X8jbqhUi5b%2FStreamit_cut.mp4?alt=media&token=37164c95-a2fc-40ff-9989-2f2459ca512e>" %}
