I have developed Wasm/Pyodide-ported serverless Streamlit, “stlite” (forum post), and just released a VSCode extension to use in in your VSCode workspace.
Install and try it!
You can launch a preview panel from the “Launch stlite preview” command in the command palette.
One interesting usage is VSCode for the Web or GitHub Codespaces.
Since this extension executes Python (Pyodide) and Streamlit on your browser, by installing it on your Codespaces, you can edit and run the Streamlit app without any server setup.
The current version of the extension uses @stlite/mountable in the same way as this section in the README, which means the stlite resources are downloaded from the CDN every time you launch the extension, so it can’t start offline.
I’m just a novice and I think that Streamlit and stlite sounds very interesting coding platforms.
I tried to configure coding environment with Visual code and now I have problem with stlite preview window.
I have installed slite extension v0.3.10 to VC, and then I followed those extension instructions three steps: 1. launch stlite preview…
But some reason I can’t select file. File list just flash and then it disappears, and no preview window exists.
Any ideas what to do?
I have next configuration:
Windows 10
WSL2, Ubuntu 22.04.2
Visual code desktop, Version: 1.77.3 (user setup)
Python 3.10.6
I tried very basic project app.py file which has:
@pahotari Thank you for giving it a trial!
It might be a Windows-specific problem, although I haven’t confirmed it yet because currently I’m traveling and don’t have an access to Windows env.
Sorry but please be patient until the fix.
I tried this again. When I tried to select the file(app.py) many times, sometimes the file selection was successful. But when it sometimes start preview window, I got the following error message in the preview window:
FileNotFoundError: [Errno 44] No such file or directory: ‘/home/\home\myname\projects\stdetection\x07pp.py’
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.