-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Add cell_ids for ipynb with nbformat >= 4.5 #134835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| "engines": { | ||
| "vscode": "^1.57.0" | ||
| }, | ||
| "enableProposedApi": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note the use of proposed API
| e.changes.forEach(change => { | ||
| change.items.forEach(cell => { | ||
| const cellMetadata = getCellMetadata(cell); | ||
| if (cellMetadata?.id && isCellIdUnique(cellMetadata.id, e.document, cell)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure cells have cell_id if using nbformat >= 4.5
|
|
||
| /** | ||
| * Ensure all new cells in notebooks with nbformat >= 4.5 have an id. | ||
| * Details of the spec can be found here https://jupyter.org/enhancement-proposals/62-cell-id/cell-id.html# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added link to docs
This PR fixes #134834
Debt item from last week.