Streamlit Code Troubleshooting & Enhancement

Job ID: 38944567

Budget: €30 – €250 EUR

I need some help with my existing Streamlit code. The purpose of the code is to show the user some dynamically created plotly graphs specified in an uploaded config file from an upkoaded data file. This part works well by itself. I had the code working with a fixed path for the data file and config file on the local drive but I want to make the code fully functional online. I struggle with data upload and keeping the files throughout the use with the help of session states. The app loses track of the session state of the two files when changing pages or going back to the config page. I need your help to create me code for this: 1. The user must be able to upload on the "Config page" an .xlsx data file and a .json config file (that contains the information which data gets shown on which page) 2. The user must be able to select different pages (select box in the sidebar) then graphs get drawn with the data assigned to that page. The data and config file must be remembered when the user is switching pages. 3 the user should be able to add edit and delete entries into that json config file on the Config page (in an AGGrid maybe) for the Also to add, edit and delete the assignments of data to the page in the json config file. And the usee should be allowed to add, edit, delete a custom icon (path), custom Headline and Subline which should be stored in the json file as well.
4. The config json must be exportable or to be "saved as" so the user can have multiple config files.
Fictional example for the data and the use: time series of hourly temperatures for one day in many cities. The excel contains the city name in the top row and in the rows below the temperature values.
The json config file would then assign a a city to a country name, the user can edit that: e.g New York, = USA, Berlin=Germany. While cities could be in multiple pages and pages contain multiple cities. The user can add edit delete page names e.g. pages "USA", "Canada", "France", "Germany". The user should be able to rename the headline and save it into the config json.
Related categories: Python Streamlit