##// END OF EJS Templates
fill missing metadata when upgrading v2->v3
MinRK -
Show More
@@ -45,6 +45,9 b' def upgrade(nb, from_version=2, from_minor=0):'
45 45
46 46 nb.orig_nbformat = 2
47 47 nb = _unbytes(nb)
48 for ws in nb['worksheets']:
49 for cell in ws['cells']:
50 cell.setdefault('metadata', {})
48 51 return nb
49 52 elif from_version == 3:
50 53 if from_minor != nbformat_minor:
General Comments 0
You need to be logged in to leave comments. Login now