Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>stliteNew to Visual Studio Code? Get it now.
stlite

stlite

Yuichiro Tachibana

|
17,504 installs
| (2) | Free
| Sponsor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Welcome to the Streamlit Preview VSCode Extension, powered by stlite

This VSCode extension provides a convenient way to preview Streamlit apps in an integrated VSCode panel. It is powered by a Wasm/Pyodide-ported version of Streamlit, "stlite", that runs on the browser without servers. This unique feature allows the extension to run on both VSCode desktop and VSCode Web, such as on GitHub Codespaces, without the need for setup of Python or other dependencies. This makes serverless and full-remote development of Streamlit apps a reality.

Usage

To use this extension, follow these steps:

  1. Select the "Launch stlite preview" command in the Command Palette (Ctrl/Cmd + Shift + P)
  2. Select the script file to run, which would normally be passed to the streamlit run command
  3. The preview of your Streamlit app will be shown in the integrated VSCode panel.

Screenshot of launching the extension

Python Dependencies

The dependencies required to run your Streamlit app are read from the requirements.txt file. The package names must be written line by line in the file. When the preview panel is launched, the dependencies are installed. If the requirements.txt file is updated after the panel is launched, the installation will run again.

stlite Restrictions and Differences

Please note that "stlite" is a customized version of Streamlit and may have some differences and restrictions compared to the original Streamlit. For more information, please see the GitHub repository for stlite: https://github.com/whitphx/stlite#limitations.

Offline Usage

The current version of this extension uses @stlite/mountable in the same way as described in the stlite README, which means that the stlite resources are downloaded from the CDN every time the extension is launched. As a result, the extension cannot start offline.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft