Plotly (Libraries available when deploying)

I ran an streamlit app locally using Python 3.10 that included a visualization made with plotly. When I try to deploy the app I see that it fails when importing the library such as:

import plotly.express as px

is there any way to get plotly to be added?

Thanks in advance

Hi @Marc4, welcome to the forum!

You can create a file in your repo called requirements.txt and put plotly and any other python packages your app needs in that file, and they will be installed in your deployed app.

You can read more about it here App dependencies for your Community Cloud app - Streamlit Docs

Many thanks!

1 Like

Another stupid question: can I deploy an app from a repo which is private?

Yup!

When i try to deploy by linking to my github account, the option to deploy that private repo does not show up

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.