Shinylive in Quarto - Revealjs Slides?

I have a (Python) shinylive app (works great on its own), but I am looking to integrate it directly into a quarto presentation. I followed the instructions here on how to use it in an HTML Quarto, but I am using a revealjs presentation.

Is it even possible in revealjs?

I am getting errors:

FATAL (/Applications/quarto/share/filters/main.lua:3378) An error occurred:
Could not run my/local/path/shinylive as a JSON filter.
Please make sure the file exists and is executable.

Did you intend 'shinylive' as a Lua filter in an extension?
If so, make sure you've spelled the name of the extension correctly.

The original Pandoc error follows below.
Error running filter my/local/path/shinylive:
Could not find executable my/local/path/shinylive
Error running filter /Applications/quarto/share/filters/main.lua:
/Applications/quarto/share/filters/main.lua:2238: attempt to call a nil value (global 'crash_with_stack_trace')
stack traceback:
        /Applications/quarto/share/filters/main.lua:1826: in function 'fail'
        /Applications/quarto/share/filters/main.lua:3378: in field 'Pandoc'
        /Applications/quarto/share/filters/main.lua:235: in function 'run_emulated_filter'
        /Applications/quarto/share/filters/main.lua:942: in local 'callback'
        /Applications/quarto/share/filters/main.lua:960: in upvalue 'run_emulated_filter_chain'
        /Applications/quarto/share/filters/main.lua:996: in function </Applications/quarto/share/filters/main.lua:993>

I included in my yaml:

format: 
  revealjs:
    theme: beige
    transition: slide
    slide-number: true
    embed-resources: true
filters:
  - shinylive

My specific chunk looks like this:

```{shinylive-python}
#| standalone: true
## file: app.py

.....

## file: all_fns.py

import io
import json
import numpy as np
import requests

...

1 Like