3 ms·
Hasn't Pyodide been available for some years now?
by theanonymousone 1y ago
Hasn't Pyodide been available for some years now?
- simonw 1y agoYes but it works only in the browser - running Pyodide outside of a browser is a lot of extra work. My previous attempts are described here: - https://til.simonwillison.net/deno/pyodide-sandbox https://til.simonwillison.net/deno/pyodide-sandbox - https://til.simonwillison.net/webassembly/python-in-a-wasm-sandbox https://til.simonwillison.net/webassembly/python-in-a-wasm-s...
- almostgotcaught 1y agonot true pyodide venv .venv-pyodide source .venv-pyodide/bin/activate I don't know what runtime it uses but I have tests in nightly CI that run exactly like this. see https://pyodide.org/en/stable/development/building-packages-from-source.html#testing-packages-against-pyodide https://pyodide.org/en/stable/development/building-packages-...
- simonw 1y agoInteresting - I hadn't seen that before: > Pyodide provides an experimental command line runner for testing packages against Pyodide. Using it requires nodejs version 20 or newer. Looks like it's a recent addition?
- almostgotcaught 1y agoNo clue - I added that CI job around 6 months ago.
- simonw 1y agoI tracked it down to this PR from September 2022, so it's been around for a while: https://github.com/pyodide/pyodide/pull/2976 https://github.com/pyodide/pyodide/pull/2976
- ZhiqiangWang 1y agoWhat is the point of running python in webassembly outside browser?
- simonw 1y agoSee comment here: https://news.ycombinator.com/item?id=45365165 https://news.ycombinator.com/item?id=45365165 I want a robust sandbox I can run untrusted code in, outside of the browser.