Deployment of PyPSA-SPICE-Vis appΒΆ
The easiest method to deploy is using git-lfs to manage the data and simply using streamlit's community cloud.
- Download git-lfs:
-
To deploy the app, create a branch of the repo. This will also allow you to make changes like default values for country and scenario, graph setting, etc.
-
Install git-lfs via the following command:
-
Add the results data files inside this branch. These data files will be tracked using git-lfs. Note: add only the CSV files but do keep the same folder structure as that of
pypsa-spiceresults. -
Add path to this results folder inside
pypsa-spice-vis/setting/initial_project_01_deploy.yaml. Note: thepypsa-spice-vis/setting/initial.yamlis ignored by git and used for local deployment. -
In
pypsa-spice-vis/main.py, makeDEPLOY == True. By default,Falsefor local run. -
Initialise and track the result files using git-lfs. You will have to add all csvs to be tracked with lfs tracking system with following commands based on your operation system:
After adding all csv files, you can initialise and commit tracked files using git-lfs:
Now the repository can be linked simply to Streamlit's deployment system.