We currently extract all of our docs snippets at build time, run them, and most importantly put them through automated testing to make sure they never accidentally break. We then capture the output as static content for display. I would still want to do that, including capturing output so the results loads instantly with the page. But we have also wanted to add live editing as an enhancement.