admin管理员组文章数量:1356764
I'm trying to use shinylive
to show a shiny python example in a revealjs quarto presentation. Unfortunately, the shinylive output keeps rendering and doesn't show the output. Here is a reproducible example:
---
format: revealjs
server: shiny
filters:
- shinylive
---
Python
```{shinylive-python}
#| standalone: true
#| components: [editor, viewer]
from shiny import *
app_ui = ui.page_fluid(
ui.input_slider("n", "N", 0, 100, 40),
ui.output_text_verbatim("txt"),
)
def server(input, output, session):
@output
@render.text
def txt():
return f"The value of n*2 is {input.n() * 2}"
app = App(app_ui, server)
```
Output:
It keeps rendering and not showing the output. I installed the quarto add quarto-ext/shinylive
extension and used pip install shinylive --upgrade
which is version 0.8.2. So I was wondering if anyone knows why this happens?
本文标签: revealjsShinylive doesn39t render in Quarto revealjs presentationStack Overflow
版权声明:本文标题:reveal.js - Shinylive doesn't render in Quarto revealjs presentation - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744031501a2578992.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论