3 ms·
More development and users for Pyodide is great news. Especially that better serverless story for Python server frameworks. I wonder if Jupyter can work in thi
by jarpineh 3y ago
More development and users for Pyodide is great news. Especially that better serverless story for Python server frameworks.
I wonder if Jupyter can work in this stack? It is essentially JavaScript, but built for browser environment. Just the Python kernel might be worker compatible. It essentially has to do code evaluation which might a limitation as well. Should it work you could offload compute from browser or other HTTP clients to waster resources of worker environment. Direct access to databases would be better as well.
- akshayka 3y agoPython notebooks can definitely work in WASM: - https://jupyterlite.readthedocs.io/en/stable/ https://jupyterlite.readthedocs.io/en/stable/ - https://docs.marimo.io/guides/wasm.html https://docs.marimo.io/guides/wasm.html Running just the kernel in a Cloudflare Worker is an interesting idea ...
- jarpineh 3y agoYes, Jupyter could work. I just fear there is things that except browser’s JavaScript APIs. Some I think aren’t even available for web workers. V8 workers are a different thing (I believe) and not at all familiar to me. But, it should be easy enough to test… https://github.com/jupyterlite/jupyterlite?tab=readme-ov-file#browser-based-interactive-computing https://github.com/jupyterlite/jupyterlite?tab=readme-ov-fil... <- Currently kernel supports at least web workers.