##// END OF EJS Templates
convert v3->v4: only set collapsed metadata if value is defined
MinRK -
Show More
@@ -83,7 +83,8 b' def upgrade_cell(cell):'
83 83 cell.setdefault('metadata', NotebookNode())
84 84 if cell.cell_type == 'code':
85 85 cell.pop('language', '')
86 cell.metadata.collapsed = cell.pop('collapsed')
86 if 'collapsed' in cell:
87 cell.metadata['collapsed'] = cell.pop('collapsed')
87 88 cell.source = cell.pop('input', '')
88 89 cell.execution_count = cell.pop('prompt_number', None)
89 90 cell.outputs = upgrade_outputs(cell.outputs)
General Comments 0
You need to be logged in to leave comments. Login now