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
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.