Replies: 3 comments 10 replies
-
I think this is one of our top priorities for v0.18.0. |
Beta Was this translation helpful? Give feedback.
-
Just want to say huge thanks to @dmondev @rrth @hoodmane! Packaging pyodide into an npm package will make it much more accessible. |
Beta Was this translation helpful? Give feedback.
-
@rth @hoodmane Thank you for all the work in releasing v0.18! Follow-up question. Is the current |
Beta Was this translation helpful? Give feedback.
-
Are there any plans for releasing pyodide as an npm package ?
Being python for the web/browser, it makes sense to provide an npm package so it can be used along with the rest of the web development ecosystem, that revolves around node/npm and affiliates.
It seems that for the standard distribution, all we need is package.json + the contents of the build folder and of course an account in npmjs to publish (seems like there's another pyodide account there, that I'm not sure is related to you).
[Update] - 2021-04-02
I published an initial version based on 0.17.0a1 to the following org/package.
https://www.npmjs.com/package/@pyodide/pyodide
And also an example for running locally using a simple webpack-dev-server:
https://github.com/pyodude/pyodide-webpack
Notes about this package
This version includes the standard distribution minus scipy/dependencies plus plotly. As the plan for the core distribution changes (distribute only the minimal build), the npmjs package can easily reflect that.
Had to remove scipy (and dependents), as the files are too big for github/npmjs. I think that for newer versions there shouldn't be the same issue.
I used 0.17.0a1 instead of dev(master), because of Memory access out of bounds in Chrome #1384. I'm mainly interested in using pyodide with plotly right now.
About "@pyodide" in npmjs
I hope you forgive me for taking the huge liberty of publishing this under @pyodide/pyodide. The org name was available in npmjs, and I already saw a couple of pyodide packages in npmjs, so I didn't want you folks to "lose" the org, or have to go through the process of claiming it for you.
I'd be happy to give ownership to the npmjs project/org, just let me know. I can maintain it for the time being, as I'm using pyodide, and very interested in keeping the npmjs package up to date.
Beta Was this translation helpful? Give feedback.
All reactions