Spaces:
Sleeping
Sleeping
File size: 320 Bytes
349f8b3 cae8655 349f8b3 |
1 2 3 4 5 6 7 8 9 |
import json
if __name__ == '__main__':
"""Execute the first code block of the app.ipynb notebook."""
with open('app.ipynb', 'r') as notebook:
nb = json.load(notebook)
idxs = [idx for idx, cell in enumerate(nb['cells']) if cell['cell_type']=='code']
exec(''.join(nb['cells'][idxs[0]]['source']))
|