Implementing user interaction into static web pages are now possible thanks to shiny and web assembly = shinylive.

Settig up Shinylive1

1. Create a vrtual environnement

python3 -m venv .venv
source .venv/bin/activate 

2. install shinylive

pip install shinylive --upgrade

3. use shinylive in quarto document

To use this extension in your Quarto project, run this in the top level of your Quarto project:

quarto add quarto-ext/shinylive

References:

Footnotes

  1. https://github.com/quarto-ext/shinylive?tab=readme-ov-file#installation↩︎