in notebooks/common/util/fcst_utils.py [0:0]
def wait(callback, time_interval = 10):
status_indicator = util.notebook_utils.StatusIndicator()
while True:
status = callback()['Status']
status_indicator.update(status)
if status in ('ACTIVE', 'CREATE_FAILED'): break
time.sleep(time_interval)
status_indicator.end()
return (status=="ACTIVE")