Remix.run Logo
simonw 9 hours ago

Yes 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/webassembly/python-in-a-wasm-s...

ZhiqiangWang 4 hours ago | parent | next [-]

What is the point of running python in webassembly outside browser?

simonw 4 hours ago | parent [-]

See comment here: https://news.ycombinator.com/item?id=45365165

I want a robust sandbox I can run untrusted code in, outside of the browser.

almostgotcaught 8 hours ago | parent | prev [-]

not 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-...

simonw 8 hours ago | parent [-]

Interesting - 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 8 hours ago | parent [-]

No clue - I added that CI job around 6 months ago.

simonw 8 hours ago | parent [-]

I tracked it down to this PR from September 2022, so it's been around for a while: https://github.com/pyodide/pyodide/pull/2976