Skip to content

Commit f208a34

Browse files
authored
Change reactive.Effect to output and render.text (#103)
1 parent 1acbef9 commit f208a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ipywidgets/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def server(input: Inputs, output: Outputs, session: Session):
2323

2424
register_widget("slider", s)
2525

26-
@reactive.Effect
26+
@output(id="value")
27+
@reactive.text
2728
def _():
2829
return f"The value of the slider is: {reactive_read(s, 'value')}"
2930

0 commit comments

Comments
 (0)