Skip to content

Commit

Permalink
Merge branch 'deephaven:main' into e2e-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 authored Mar 13, 2024
2 parents 2bf9ec1 + 48dea18 commit 1703b2e
Show file tree
Hide file tree
Showing 27 changed files with 1,033 additions and 525 deletions.
18 changes: 9 additions & 9 deletions docker/data/storage/notebooks/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def picker():
)


p = picker()
result = picker()
```

## Using Tables
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -271,7 +271,7 @@ def order_table():
),
[],
)
t = ui.use_memo(lambda: blink_to_append_only(blink_table), {blink_table})
t = ui.use_memo(lambda: blink_to_append_only(blink_table), [blink_table])

def submit_order(order_sym, order_size, side):
publisher.add(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -437,18 +437,18 @@ def multiwave():
f"y_tan={amplitude}*Math.tan({frequency}*x+{phase})",
]
),
{amplitude, frequency, phase},
[amplitude, frequency, phase],
)
p_sin = use_memo(
lambda: Figure().plot_xy(series_name="Sine", t=t, x="x", y="y_sin").show(), {t}
lambda: Figure().plot_xy(series_name="Sine", t=t, x="x", y="y_sin").show(), [t]
)
p_cos = use_memo(
lambda: Figure().plot_xy(series_name="Cosine", t=t, x="x", y="y_cos").show(),
{t},
[t],
)
p_tan = use_memo(
lambda: Figure().plot_xy(series_name="Tangent", t=t, x="x", y="y_tan").show(),
{t},
[t],
)

return ui.column(
Expand Down
Loading

0 comments on commit 1703b2e

Please sign in to comment.