Show More
@@ -83,7 +83,8 b' def upgrade_cell(cell):' | |||||
83 | cell.setdefault('metadata', NotebookNode()) |
|
83 | cell.setdefault('metadata', NotebookNode()) | |
84 | if cell.cell_type == 'code': |
|
84 | if cell.cell_type == 'code': | |
85 | cell.pop('language', '') |
|
85 | cell.pop('language', '') | |
86 | cell.metadata.collapsed = cell.pop('collapsed') |
|
86 | if 'collapsed' in cell: | |
|
87 | cell.metadata['collapsed'] = cell.pop('collapsed') | |||
87 | cell.source = cell.pop('input', '') |
|
88 | cell.source = cell.pop('input', '') | |
88 | cell.execution_count = cell.pop('prompt_number', None) |
|
89 | cell.execution_count = cell.pop('prompt_number', None) | |
89 | cell.outputs = upgrade_outputs(cell.outputs) |
|
90 | cell.outputs = upgrade_outputs(cell.outputs) |
General Comments 0
You need to be logged in to leave comments.
Login now