bcc8d35
1
2
3
4
5
import json,sys nb=json.load(open(sys.argv[1])) for c in nb['cells']: for o in c.get('outputs',[]): print(''.join(o.get('text',o.get('traceback',''))),end='')