Functional π
Possible improvements :
β Better data cleaning
β Better UI for city choice
β Add different graphical representations and data split
- data.py : From official data, completes a few missing data that can be deduced and exports it as modified-data.csv
- shared.py : Opens modified-data.csv
- app.py : Core app center, linking UI and server
- app_ui.py : Contains the UI components and their parameters
- app_server.py : Contains all the functional rendering, sent to UI
Clone the repository and enter it :
git clone https://github.com/sponthus/python-shiny
cd python-shinyFrom the dashboard directory, create a virtual environment and set it up using :
cd dashboard
python3 -m venv .venv
source .venv/bin/activate
(.venv) β pip install -r requirements.txtThe modified data obtained with data.py is already exported in repo. Then, run the Shiny app in browser with :
shiny run --reload --launch-browser app.pyBe awarwe that this is a proof of concept, and not designed to be a finished product : I only do researches on various subjects !
Made by sponthus