Streamlit project to test time-series-forecasting library prophet from facebook.
prophet
Website https://facebook.github.io/prophet/docs/installation.htmlprophet
Github https://github.com/facebook/prophet- This example app in Github: https://github.com/Franky1/Streamlit-Prophet-Test
- Installation of
pystan
andprophet
has been tricky in the past, because of the dependencies. These issues have been resolved and sinceprophet
version1.1
the dependency frompystan
is removed and installation ofprophet
is now a simplepip install
without any hassles. - Be aware that the prophet library was renamed in 2020 from
fbprophet
toprophet
, therefore use the newer naming scheme in your python application. - The
prophet
library should currently work with python versions from3.7
to3.10
on all major architectureswin_amd64
,linux_x86_64
andmacosx_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:latest
A 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" --force
Open local docker streamlit app site: http://localhost:8501/
Port 8501
is the default port for Streamlit.
Updated prophet. Last change: 09.07.2022