Replies: 1 comment 2 replies
|
The main difference between the two, is that Pyodide runs Python right in the browser via WebAssembly whereas Transcrypt transpiles Python into JavaScript preemptively as a separate step before it ever gets sent to the browser. The advantage of Transcrypt is that what is sent to the browser will be smaller and/or likely have better performance than running or compiling Python directly in the browser. This post by Anvil is getting a little dated as there are some new options available now (like PyScript), but it does a good job of explaining some of the differences in how they work. They all have valid use cases, it just depends on what your needs and priorities are. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm looking for options to execute my python code in javascript and would like to know what I can do in order to best integrate the two languages. I was wondering if Transcrypt of Pyodide would be a better option, and would really appreciate any advice on what the nuances of either one are. Thanks!
All reactions