Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you just open an HTML file in your browser via its local path (e.g. /home/user/...) the browser will prevent you from loading other files by JS due to CORS. So we need a web-server to set the appropriate CORS headers. Any web-server would do.
For inline code, yes it would be doable someone would need to continue https://github.com/pyodide/pyodide/pull/692
For examples, I'll respond in the Pyodide issue where you commented.
I'm looking into a python -> dart -> js approach. Emphasis on static type checking and small feature set that's easy to understand.
https://github.com/adsharma/py2many/
Made a new release earlier today:
https://adsharma.github.io/py2many0.2.1/
If you want to play with Pyodide in a web notebook you can try Starboard [1][2].
A sibling comment introduces JupyterLite and Brython, which are Jupyer-but-in-the-browser, whereas with Starboard I'm trying to create what Jupyter would have been if it were designed for the browser first.
As it's all static and in-browser, you can embed a notebook (or multiple) in a blog post for instance to power interactive examples. The bundle size is a lot smaller than JupyerLite for the initial load - it's more geared towards fitting into existing websites than being a complete IDE like JupyerLab.
[1] https://github.com/gzuidhof/starboard-notebook
[2] https://starboard.gg
Related posts
- Turns Jupyter notebooks into standalone web applications and dashboards
- Py2wasm – A Python to WASM Compiler
- Show HN: I built a small utility that handles multiple browser instances for you
- Is AWS Lambda Cold Start Still an Issue?
- Show HN: Marimo – open-source reactive Python notebook – running in WASM