MCPcopy Create free account
hub / github.com/plotly/dash / multi_output_app

Function multi_output_app

tests/unit/mcp/tools/test_mcp_tools.py:56–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55@pytest.fixture
56def multi_output_app():
57 app = Dash(__name__)
58 app.layout = html.Div(
59 [
60 dcc.Dropdown(id="dd", options=["a", "b"], value="a"),
61 dcc.Dropdown(id="dd2"),
62 html.Div(id="out"),
63 ]
64 )
65
66 @app.callback(
67 Output("dd2", "options"),
68 Output("out", "children"),
69 Input("dd", "value"),
70 )
71 def update(val):
72 return [], val
73
74 app_context.set(app)
75 app.mcp_callback_map = CallbackAdapterCollection(app)
76 return app
77
78
79@pytest.fixture

Callers

nothing calls this directly

Calls 3

DashClass · 0.90
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…