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

Very interesting project. We are still contemplating if / how we can integrate an interactive python shell in Bamboo. The challenges seem to be syncing the visual layer to the data structures in the shell and sand boxing properly as we don't want to lose the ability to offer this as a hosted version just for the ease of access.