r-wasm / quarto-live

WebAssembly powered code blocks and exercises for both the R and Python languages in Quarto documents
https://r-wasm.github.io/quarto-live/
MIT License
94 stars 6 forks source link

Consider how best to re-introduce the "Interrupt" button #11

Open georgestagg opened 1 month ago

georgestagg commented 1 month ago

How clear should this be made to be? Something different to clicking the execution indicator? A large red "Stop" button?

Consider how to handle interruption with the PostMessage channel - this cannot be done easily. Perhaps a Quarto-live service worker? This would interfere with shinylive.

Perhaps it is better to just wait until the new JSPI channel is ready? The support for execution "Timeout" is a reasonable stop-gap.

coatless commented 1 month ago

I would hold off implementing it in favor of the new channel type. The service worker component introduces a lot of issues for deployment.