I recently deployed this app on share.streamlit. th eapp allows the user to edit scenarios and saves every change to a json file. the user can also create new scenarios. this works well locally, but on share.streamlit.io, I get the error. PermissionError: [Errno 13] Permission denied: ‘scenarios.json’. This happens with this code:
with open('scenarios.json', 'wt') as myfile: json.dump(self.scenarios, myfile)
where scenarios is a dictionary holding all scenarios (to start with jst the default one).
The full code can be found on github.
Am I not allowed to save changes on share.streamlit? Is there an alternative to persist user input for future sessions? Thanks in advance on any insight on my problem.