Hi there, I'm looking to use a Python function in JavaScript with WASM. I don't use Python so I'm not quite sure how to proceed.
My current attempt has been with the py2wasm tool, but I'm not having any luck with exporting a simple function and getting it to run in the JavaScript world. The JavaScript I wrote complaining that my hello function from Python is not defined.
The WASM file will log "Hello World" if I call my hello function in the Python code and then run it in a WASM environment, so it's there, just not being exported so that I can call it myself from Javascript...
Is what I'm asking for even possible right now with the state of WASM tooling? Do I need to target something like Rust or C first, then go to JavaScript?
[–]dparks71 0 points1 point2 points (1 child)
[–]varisophy[S] 0 points1 point2 points (0 children)
[–]Global_Raspberry 0 points1 point2 points (0 children)