Skip to content

Commit 4eb86ea

Browse files
committed
Fix example code
1 parent 5a6f7f0 commit 4eb86ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/ipywidgets/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from shiny import *
2-
from shinywidgets import *
31
import ipywidgets as ipy
42
from ipywidgets.widgets.widget import Widget
3+
from shiny import *
54

5+
from shinywidgets import *
66

77
app_ui = ui.page_fluid(output_widget("slider"), ui.output_text("value"))
88

@@ -24,7 +24,7 @@ def server(input: Inputs, output: Outputs, session: Session):
2424
register_widget("slider", s)
2525

2626
@output(id="value")
27-
@reactive.text
27+
@render.text
2828
def _():
2929
return f"The value of the slider is: {reactive_read(s, 'value')}"
3030

0 commit comments

Comments
 (0)