Forum Archive

Has anyone tried pyodide (or other emscripten/asm.js)?

JonB

Curious if anyone has tried this inside pythonista:
https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scientific-python-stack-to-the-browser/

Looks like this could be a way to bring (slow?) scipy/pandas support into pythonista. It could also be used to integrate other c based modules. Pyiodide is a port of cypython to the JavaScript, using webassembly or asm.js. This raises interesting possibilities-- though I've seen conflicting info as to whether mobile safari would support this or not.

cvp

@JonB never heard, looks promising

Edit: if conflicts with Safari, perhaps not with Firefox on iOS?

cvp

Interesting topic here

And about rebuild of panda for PyPy.js here

ccc

https://talkpython.fm/episodes/show/212/python-in-web-assembly-with-pyodide
https://talkpython.fm/episodes/show/213/webassembly-and-cpython

mikael

@JonB, looks like still not operational on Safari (WebKit?) on either iOS or Mac. Let’s see if the situation changes with the upcoming OS versions.

uwedobleio

This is great advice! Very honest and practical. I really enjoyed this post. Nice post!!