MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / update_graph_1

Function update_graph_1

sagemaker-dash/tutorials/app17.py:94–112  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

92
93@app.callback(Output('graph-1', 'figure'), Input('signal', 'data'))
94def update_graph_1(value):
95 # generate_figure gets data from `global_store`.
96 # the data in `global_store` has already been computed
97 # by the `compute_value` callback and the result is stored
98 # in the global redis cached
99 return generate_figure(
100 value, {
101 'data': [{
102 'type': 'scatter',
103 'mode': 'markers',
104 'marker': {
105 'opacity': 0.5,
106 'size': 14,
107 'line': {
108 'border': 'thin darkgrey solid'
109 }
110 }
111 }]
112 })
113
114
115@app.callback(Output('graph-2', 'figure'), Input('signal', 'data'))

Callers

nothing calls this directly

Calls 1

generate_figureFunction · 0.85

Tested by

no test coverage detected