okld/streamlit-ace

Loading a file into the Editor

dionyce opened this issue · 1 comments

How is It possible to load an already existing file into the streamlit-ace editor?

I am sorry, if this is not the right place to put the request. I am new to GitHub.

zsz00 commented
with open(cse_config_path, 'r') as f:
    cfg2_data = f.read()
    content = st_ace(value=cfg2_data)  

But this display is often not updated with the contents of the file change