Carglglz / jupyter_upydevice_kernel

Jupyter MicroPython Kernel made with upydevice
https://pypi.org/project/jupyter-micropython-upydevice/
BSD 3-Clause "New" or "Revised" License
14 stars 2 forks source link

ENH: JupyterLite WASM build #10

Open westurner opened 1 year ago

westurner commented 1 year ago

A JupyterLite build with this kernel

westurner commented 1 year ago
Carglglz commented 1 year ago

@westurner unfortunately if I'm not wrong it looks like https://jupyterlite.readthedocs.io/en/latest/howto/extensions/kernel.html requires to write the kernel in TypeScript which I'm not versed in at all 😵‍💫... maybe this is better suited for https://github.com/metachris/micropython-ctl 👍🏼

westurner commented 1 year ago

Emscripten compiles (Python, C, ) to WASM, which can be called from TypeScript.

Empack wraps emscripten.

ipywidgets recipe: https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/ipywidgets/recipe.yaml

Carglglz commented 1 year ago

@westurner mmm maybe adapting https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/ipython/recipe.yaml, but in that case I don't think I need to add/change anything in this kernel to get that working? So let me know if you try, maybe I could add the recipe.yaml/build instructions for that if you get it working 👍🏼

westurner commented 1 year ago