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

Function read_prop

tests/websocket/test_ws_props.py:182–192  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

180
181 @app.callback(Output("result", "children"), Input("btn", "n_clicks"))
182 async def read_prop(n):
183 if not n:
184 raise PreventUpdate
185
186 from dash import ctx
187
188 ws = ctx.websocket
189 if ws:
190 value = await ws.get_prop("source", "children")
191 return f"Read: {value}"
192 return "No WebSocket"
193
194 dash_duo.start_server(app)
195

Callers

nothing calls this directly

Calls 1

get_propMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…