Skip to content

Commit deafe48

Browse files
committed
Updates to handle breaking changes from posit-dev/py-shiny#1018
1 parent 8e7311f commit deafe48

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/altair/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
# Output selection information (click on legend in the plot)
10-
@render.text
10+
@render.code
1111
def selection():
1212
pt = reactive_read(jchart.widget.selections, "point")
1313
return "Selected point: " + str(pt)

shinywidgets/_render_widget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class render_altair(render_widget_base[ValueT, JupyterChart]):
3636
...
3737

3838
class render_bokeh(render_widget_base[ValueT, BokehModel]):
39-
def default_ui(self, id: str) -> Tag:
40-
res = super().default_ui(id)
39+
def auto_output_ui(self, id: str) -> Tag:
40+
res = super().auto_output_ui(id)
4141
res.children.append(bokeh_dependency())
4242
return res
4343

shinywidgets/_render_widget_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
class render_widget_base(Renderer[ValueT], Generic[ValueT, WidgetT]):
4242
""" """
4343

44-
def default_ui(self, id: str) -> Tag:
44+
def auto_output_ui(self, id: str) -> Tag:
4545
return output_widget(
4646
id,
4747
width=self.width,

0 commit comments

Comments
 (0)