As a part of stlite project making Streamlit run completely on web browsers,
I am developing an online code editor + app sharing platform for Streamlit apps based on stlite.
You can write and share Streamlit apps with a serverless Python runtime!
The source code and data are encoded and embedded into the URL, so you can share the URL and restore the app anywhere (this idea is inspired by ShinyLive).
Bonus
You can host the app code on GitHub or Gist and load it via URL as below:
Amazing. Seriously amazing. Have you considered not stripping off the # part of the url after the app loads? Would make sharing easier, as I wouldn’t have to go back to the place I clicked. I understand hiding it in the case where you have all the code for the app base64 encoded, but it would be nice in the case where you’re using a reasonable-length url like from a github or gist.
@Charly_Wargnier Thanks,
There is not the detailed error message on the screen for now,
so please see the error message on the dev console (F12 may open it).
Hi Charly
Just wondering if it is possible to read a file using pandas using stlite.
I m getting this error:
URLError: <urlopen error [Errno 26] Operation in progress>
Traceback:
File "/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 555, in _run_script
exec(code, module.__dict__)File "/home/pyodide/streamlit_app.py", line 140, in <module>
df = pd.read_csv(File "/lib/python3.10/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
Please let me know if you have any suggestions.
Thanks