Closed florianjehn closed 2 months ago
Would be fun to try to select a country, and have the stackplot show. Could also have some options, such as different adaptations. To see some examples of by-country or global food scenarios, take a look at the latest version of the paper. https://docs.google.com/document/d/1tUz0Bdx5hjLAFo-JOLC-E3um2Ii6myAk/edit?usp=sharing&ouid=105631531253399565194&rtpof=true&sd=true
It seems like this repository will probably be forgotten about (and likely of limited use) unless there's a user interface for non-coders.
I was thinking it's not that hard to set up a plotly app using dash.
It will make our work much easier to understand and use, and help demonstrate the range of features we have. I think there are a bunch of sub-tasks involved in making a dashboard, if we want to implement all the features of the model: First, we need to host it online. Perhaps we can embed it in allfed.info Then, we need the following features:
"settings" tab
variable values which can be altered -- like, months of biofuels, max percent diet seaweed
toggle for running globally vs no food trade. if global, all the maps will be the average value
toggle for "use seaweed", "use methane Scp" etc
toggles for different adaptations (mentioned in the paper)
a separate tab for "baseline" which shows present-day summary from the model
a "detailed view" tab which can be used to see food contributions over time for a single country or all countries combined (the stackplot)
also would be good to have some summary statistics
"reports" tab
button for "generate pptx report" which shows progress as it runs the countries then downloads reports
button to generate figures from the paper (this button can be on a page separate from the "maps" tab)
we could even have this generate a pdf of the paper with different values and plots inserted! But this is probably getting ahead of ourselves
Here are some inspirations https://dash.gallery/dash-manufacture-spc-dashboard/ https://dash.gallery/dash-world-cell-towers/ https://ourworldindata.org/explorers/democracy
Potentially we could team up with our world in data to publish an article with them? Then an interface like this could get a lot more views. If we think that's a good idea. Certainly having ourworldindata talk about nuclear winter as a fact is helpful for prevention, and other ideas from allfed could get shared in intelligent ways to the right people if it were hosted on ourworldindata
Closing because this now exists: https://intmodel-simonblouin.pythonanywhere.com/
https://plotly.com/