Adds a new optional serialize method to all Saveable objects. This method will be used in case the saveable is not directly string-serializable (such as notebooks) for the "Save As" action.
How to test
Open a ipynb file, and edit it
Save it to a new file using Save As...
The new file should contain all old changes + new changes
The old file should be correctly reverted
Please also confirm that the "Save As" operation still works for normal text editors
Review checklist
[x] As an author, I have thoroughly tested my changes and carefully followed the review guidelines
What it does
Adds a new optional
serialize
method to allSaveable
objects. This method will be used in case the saveable is not directly string-serializable (such as notebooks) for the "Save As" action.How to test
ipynb
file, and edit itSave As...
Please also confirm that the "Save As" operation still works for normal text editors
Review checklist
Reminder for reviewers