The main problem I see is relying on a server. Running sandboxes server-side takes up resources even when idle (the user went to lunch, or left it running overnight). Google can do it with Colab, but this is expensive to provide to the general public, so often the sandbox gets killed after a timeout.
Observable does a similar thing, but in the browser, so the cells run JavaScript. I suppose a WASM implementation could provide more languages?
Or it might be better done using a VS Code plugin or something like that. (Thry already exist.) But that means casual readers won’t be able to play with it.