-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Quarto] using reactive
in Dashboards in Shiny for Python
throws error
#973
Comments
Is your code block intentionally missing a function body for |
@cpsievert I believe this issue is specifically when Shiny is used in Quarto. (I think I know why it's not able to access |
reactive
in Dashboards in Shiny for Python
throws errorreactive
in Dashboards in Shiny for Python
throws error
This was just re-reported by a user on Discord: https://discord.com/channels/1109483223987277844/1214520904189612094/1214520904189612094. |
We will have a fix for this in Quarto soon. In the meantime, there is a workaround. If this is the code: @reactive.effect
@reactive.event(input.go)
def do_something():
# Code that does stuff here ... You can change it to this: @reactive.effect
def do_something():
input.go()
with isolate():
# Code that does stuff here ... Using In some cases it is also be useful to put the @reactive.effect
def do_something():
req(input.go())
with isolate():
# Code that does stuff here ... This makes it so the if the value is falsy, (like |
When using this code to add reactivity when a button is clicked inside a Quarto document
it throws an error
Quarto version: 1.4.530
Shiny for python version:
0.6.1.9000
The text was updated successfully, but these errors were encountered: