https://github.com/pranabdas/pyodide-demo
A proof-of-concept react application to run virtually any python code in the browser using Pyodide.
https://github.com/pranabdas/pyodide-demo
pyodide react wasm web-worker webassembly
Last synced: about 1 month ago
JSON representation
A proof-of-concept react application to run virtually any python code in the browser using Pyodide.
- Host: GitHub
- URL: https://github.com/pranabdas/pyodide-demo
- Owner: pranabdas
- Created: 2023-09-19T01:17:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-19T05:06:24.000Z (over 1 year ago)
- Last Synced: 2023-09-19T06:08:59.720Z (over 1 year ago)
- Topics: pyodide, react, wasm, web-worker, webassembly
- Language: JavaScript
- Homepage: https://pyodide.netlify.app
- Size: 7.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pyodide demo
This is a proof-of-concept react application to run virtually any python code in
the browser using [Pyodide](https://pyodide.org).What does this application do?
1. It takes VASP POTCAR file as input (a scientific data format used in DFT
calculation. The specifics of this file format is not important for this demo).
2. Reads the POTCAR as string and sends over to Pyodide for parsing.
3. Once parsing is done in Pyodide, results are collected in browser/JavaScript.
4. All the Pyodide job is run on a separate [webworker](
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers)
thread, so that main browser thread remains responsive at all times.Live demo is available at -