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