diff --git a/docker/data/storage/notebooks/DEMO.md b/docker/data/storage/notebooks/DEMO.md index 9db7ef902..6e8452aed 100644 --- a/docker/data/storage/notebooks/DEMO.md +++ b/docker/data/storage/notebooks/DEMO.md @@ -97,7 +97,7 @@ def picker(): ) -p = picker() +result = picker() ``` ## Using Tables @@ -197,7 +197,7 @@ def stock_table_input(source, default_sym="", default_exchange=""): return [ ui.panel( # Add a callback for when user double clicks a row in the table - ui.table(t1).on_row_double_press(handle_row_double_press), + ui.table(t1, on_row_double_press=handle_row_double_press), title="Stock Row Press", ), ui.panel(t2, title="Stock Filtered Table"), @@ -226,7 +226,7 @@ def hist_demo(source, column): x=column, nbins=bin_count, ), - {bin_count, hist_range, source, column}, + [bin_count, hist_range, source, column], ) return [ @@ -322,7 +322,7 @@ def table_tabs(source): return ui.tabs( ui.tab_list( ui.item("Unfiltered", key="Unfiltered"), - ui.item(ui.icon("vsGithubAlt"), "CAT", key="CAT"), + ui.item(ui.icon("vsGithubAlt"), ui.text("CAT"), key="CAT"), ui.item("DOG", key="DOG"), ), ui.tab_panels( diff --git a/plugins/ui/examples/README.md b/plugins/ui/examples/README.md index d464639f4..958477489 100644 --- a/plugins/ui/examples/README.md +++ b/plugins/ui/examples/README.md @@ -758,7 +758,7 @@ def stock_table_input(source, default_sym="", default_exchange=""): return [ ui.panel( - ui.table(t1).on_row_double_press(handle_row_double_press), + ui.table(t1, on_row_double_press=handle_row_double_press), title="Stock Table Input", ), ui.panel(t2, title="Stock Filtered Table"),