MCPcopy
hub / github.com/plotly/dash / simple_app

Function simple_app

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

Source from the content-addressed store, hash-verified

33
34@pytest.fixture
35def simple_app():
36 app = Dash(__name__)
37 app.layout = html.Div(
38 [
39 html.Label("Your Name", htmlFor="inp"),
40 dcc.Input(id="inp", type="text"),
41 html.Div(id="out"),
42 ]
43 )
44
45 @app.callback(Output("out", "children"), Input("inp", "value"))
46 def update(val):
47 """Update output."""
48 return val
49
50 app_context.set(app)
51 app.mcp_callback_map = CallbackAdapterCollection(app)
52 return app
53
54
55@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…