Using PyScript's <py-env> Tag to Manage Browser-Based Python Dependencies
Learn how PyScript’s <py-env> tag declaratively installs Python packages via Pyodide, where the dependencies are cached in IndexedDB, and what to check when things go wrong.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how PyScript’s <py-env> tag declaratively installs Python packages via Pyodide, where the dependencies are cached in IndexedDB, and what to check when things go wrong.
PyScript imports fail when packages are missing from py-config. Learn how the packages list controls both correctness and page load cost, with a minimal example and verification steps.
Learn how to architect client-side Python applications using PyScript and Pyodide, including Wasm runtime boundaries, DOM interop, and critical performance limitations.
A concise architecture note showing how to isolate third‑party code using capability‑based WASI imports, minimal host surface, and observable resource limits.
Learn how to harness WebAssembly’s Linear Memory for high‑performance data pipelines in the browser. A hands‑on example, trade‑offs, and actionable tips keep data in a shared buffer and avoid costly JS‑Wasm boundary crossings.
Explore how StackBlitz WebContainers use WebAssembly and Service Workers to run Node.js directly in the browser, eliminating VM cold starts and remote backend dependencies.
Run Rust utilities server-side with WASI and Wasmtime: portable, sandboxed modules without container weight.
Learn how to bridge the gap between Python logic and the browser DOM using PyScript and Pyodide's FFI to create interactive, data-driven web interfaces.
Learn how to import external Python packages in Pyscript using the <code>pip</code> directive. The guide explains the mechanism, shows a worked example, and covers limits and common pitfalls.