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

Function _make_app

tests/unit/mcp/conftest.py:36–55  ·  view source on GitHub ↗

Create a minimal Dash app with a layout and one callback.

(**kwargs)

Source from the content-addressed store, hash-verified

34
35
36def _make_app(**kwargs):
37 """Create a minimal Dash app with a layout and one callback."""
38 app = Dash(__name__, **kwargs)
39 app.layout = html.Div(
40 [
41 html.Div(id="my-input"),
42 html.Div(id="my-output"),
43 ]
44 )
45
46 @app.callback(
47 Output("my-output", "children"),
48 Input("my-input", "children"),
49 mcp_expose_docstring=True,
50 )
51 def update_output(value):
52 """Test callback docstring."""
53 return f"echo: {value}"
54
55 return _setup_mcp(app)
56
57
58def _tools_list(app):

Calls 2

DashClass · 0.90
_setup_mcpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…