Troubleshooting¶
Browser support
Prefer a Chromium‑based browser (Chrome, Edge, Brave). Other browsers generally work, but some graphics (e.g., canvas/Matplotlib) and behaviors may differ or degrade.
- Pyodide assets not loading
- By default, Pyplet loads Pyodide from a public CDN. Check that your network allows access to the configured
PYPLET_PYODIDEURL or the value passed via--pyodide-url. -
If you use a self-hosted Pyodide bundle, ensure it is reachable by the browser and that the
pyodide_urlsetting points to the correct location. -
Port already in use
-
Change
--port(orPYPLET_PORT) or stop the conflicting process -
WebSocket closes immediately
- Check browser console and server logs
-
Ensure client/server message types match (text vs binary)
-
Matplotlib figures not visible
- After
plt.show(), target the figure node and append it to your container (see examples which usedocument.body.lastChild)