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

Function global_store

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

Source from the content-addressed store, hash-verified

68# and for all time.
69@cache.memoize()
70def global_store(value):
71 # simulate expensive query
72 print('Computing value with {}'.format(value))
73 time.sleep(5)
74 return df[df['category'] == value]
75
76
77def generate_figure(value, figure):

Callers 2

generate_figureFunction · 0.85
compute_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected