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
134 stars 10 forks source link

make the most of the screen real estate with output on the left or right #59

Open tmieno2 opened 2 months ago

tmieno2 commented 2 months ago

Hi @georgestagg,

Would it be difficult to add an option to display the outcome of the R/Python codes to either left or right (kind of like the second picture instead of the first)? I have often found myself wanting to have this feature in creating Reavealjs slides for teaching. Often times, I do not need the full with of the screen for either codes or their outcomes. Having codes and results side by side can sometimes prevent a slide from being scrollable (which I personally would like to avoid if I can). Given that most computer screens or monitors have more real estate horizontally, it seems to make perfect sense to allow this behavior by adding a simple option for that. In a regular rmarkdown document where no interactivity is allowed, this can be easily dealt with by having a columns environment. But, it is not so with webr at the moment.

Screenshot 2024-09-08 at 8 31 06 AM Screenshot 2024-09-08 at 8 34 26 AM
georgestagg commented 2 months ago

Related #55.