-
Notifications
You must be signed in to change notification settings - Fork 35
Run on Pyodide #803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I updated this to use the latest code, and stubbed out some of the numba calls: https://github.com/tomwhite/sgkit/tree/pyodide-latest. This simplifies its usage a bit:
I built the wheel with python setup.py bdist_wheel And I used GCS since it makes it easy to set CORS: gsutil cors set cors.json gs://tomwhite_test Where
One day it might be possible just to use the standard sgkit wheel from PyPi, in which case there would be no need to worry about CORS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pyodide uses WebAssembly to run Python in the browser. It has support for a lot of the PyData stack, so I wondered how easy it would be to get sgkit running on it. It would be a nice way to share demos and notebooks (see JupyterLite). (This is work I did last year but didn't get round to sharing.)
The following libraries are not supported yet:
guvectorize
since it generates code with a new signature, so anything that uses these functions won't work.)I created a branch with the above changes (and a few others), then built a wheel and uploaded to GCP in order to load it with micropip. Then using https://pyodide.org/en/latest/console.html, I managed to create an sgkit Dataset:
The text was updated successfully, but these errors were encountered: