MCPcopy Index your code
hub / github.com/plotly/dash / get_app

Function get_app

components/dash-table/tests/selenium/test_markdown_link.py:7–29  ·  view source on GitHub ↗
(cell_selectable, markdown_options)

Source from the content-addressed store, hash-verified

5
6
7def get_app(cell_selectable, markdown_options):
8 md = "[Click me](/assets/logo.png)"
9
10 data = [dict(a=md, b=md), dict(a=md, b=md)]
11
12 app = dash.Dash(__name__)
13
14 props = dict(
15 id="table",
16 columns=[
17 dict(name="a", id="a", type="text", presentation="markdown"),
18 dict(name="b", id="b", type="text", presentation="markdown"),
19 ],
20 data=data,
21 cell_selectable=cell_selectable,
22 )
23
24 if markdown_options is not None:
25 props["markdown_options"] = markdown_options
26
27 app.layout = DataTable(**props)
28
29 return app
30
31
32@pytest.mark.parametrize(

Callers 1

Calls 1

DataTableClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…