Replies: 2 comments 1 reply
-
Hi @carlkl! I never used pyodide or wasm before, but it should be possible to integrate with lona because both integrate with javascript and lona is vanilla javascript only in the Frontend. Can you tell us more about your use case and what you want to achieve? |
Beta Was this translation helpful? Give feedback.
-
Hi @fscherf, thank you for the feedback. I was thinking about using pyodide for small physics simulations running in the browser. I want to choose pyodide because I need the whole numpy / scipy / matplotlib machinery for that task. There is a very nice example on the net (unrelated to my work) - just to give an an idea what I want to achive: https://www.itp.uni-hannover.de/de/ag/weimer/lehre/ideal-gas-simulator/rapid-python-gui-development-with-html5-and-pyodide/ Maybe lona could help to make the GUI part more pythonic (see idealgas.tar.gz). On the other hand this is possibly too short thought as pyodide once load runs in the browser without any connection to the server. pyodide itself has support to asyncio and jinha2. However, there is no support of aiohttp right now. Cheers @carlkl |
Beta Was this translation helpful? Give feedback.
-
Is the integration of pyodide (wasm) inside a lona-web application possible?
I'm thinking about a matplotlib canvas with widgets defined by lona-web.
Beta Was this translation helpful? Give feedback.
All reactions