Streamlit Deployment

You can deploy Streamlit apps from Zerve notebooks directly

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

Referencing variables

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

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:

Instance Type

You can chose any instance type for your deployment.

Example

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

Last updated