whoa cool! I experimented doing something similar by getting the PyPSA project into WASM with a editor - https://fhk.github.io/PyPSA-lite/app