You can deploy Streamlit apps from Zerve notebooks directly
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
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:
You can chose any instance type for your deployment.
The following video shows how we can deploy the Streamlit app.
Last updated 3 months ago
from zerve import variable name = variable ("block_name", "variable_name")
from zerve import variable employees = variable ("employee_data", "employees")