(Optional) Share a Streamlit App

(This is optional for now, but will be required before the end of the quarter.)

Video

Instructions

Instructions from Streamlit are here.

The basic procedure is:

  • Create a new repository on GitHub by going to https://github.com/new

  • Upload the .py file(s) for your app and your requirements.txt file (see the next point).

  • Make a requirements.txt file specifying the version number for the libraries you import. You can find version numbers using conda list from a terminal, or using syntax like np.__version__ (there are four total underscores in that code, two underscores on each side of version). Here is what my requirements.txt file looked like:

numpy==1.20.3
streamlit==1.0.0
  • Visit https://share.streamlit.io/ to tell Streamlit where to find the app.

  • After a few minutes, the app should then be visible to anyone through a link like this.