Streamlit project to test time-series-forecasting library prophet from facebook.
prophetWebsite https://facebook.github.io/prophet/docs/installation.htmlprophetGithub https://github.com/facebook/prophet- This example app in Github: https://github.com/Franky1/Streamlit-Prophet-Test
- Installation of
pystanandprophethas been tricky in the past, because of the dependencies. These issues have been resolved and sinceprophetversion1.1the dependency frompystanis removed and installation ofprophetis now a simplepip installwithout any hassles. - Be aware that the prophet library was renamed in 2020 from
fbprophettoprophet, therefore use the newer naming scheme in your python application. - The
prophetlibrary should currently work with python versions from3.7to3.10on all major architectureswin_amd64,linux_x86_64andmacosx_x86_64. Python wheels for these python versions and architectures are available on pypi repository.
- Add a streamlit example of a time-series-forecasting application with
prophet. - Add a solution that works on Streamlit Cloud.
- Cleanup Github repository.
- Add some alternatives for time-series-forecasting libraries.
- Clone this repository in GitHub.
- Sign in to your Streamlit account.
- Add the repository as new Streamlit project.
- Test the project.
- Modify the project to your needs.
A Dockerfile is provided that is based on the python3.10-slim image.
You can build and run the Docker image for local usage with the following commands:
# build the docker image
docker build --progress=plain --tag streamlitprophet:latest .
# run the docker container
docker run -ti -p 8501:8501 --rm streamlitprophet:latest
# run the docker container with mounted project for further development
docker run -ti -p 8501:8501 -v ${pwd}:/app --rm streamlitprophet:latestA Dockerfile is provided for local testing of the Streamlit app.
Here some useful docker commands:
# build the docker image
docker build --progress=plain --tag streamlitprophet:latest .
# run the docker container
docker run -ti -p 8501:8501 --rm streamlitprophet:latest
# run the docker container with shell
docker run -ti -p 8501:8501 --rm streamlitprophet:latest /bin/bash
# run the docker container with mounted project for further development
docker run -ti -p 8501:8501 -v $(pwd):/app --rm streamlitprophet:latest # linux
docker run -ti -p 8501:8501 -v ${pwd}:/app --rm streamlitprophet:latest # windows powershell
docker run -ti -p 8501:8501 -v %cd%:/app --rm streamlitprophet:latest # windows cmd.exe
# testing in the naked python container
docker run -ti --rm python:3.10-slim /bin/bash
# cleanup dangling docker images/layers
docker builder prune --force
docker image prune --filter="dangling=true" --forceOpen local docker streamlit app site: http://localhost:8501/
Port 8501 is the default port for Streamlit.
Updated prophet. Last change: 09.07.2022