Skip to content

Conversation

@DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Oct 11, 2021

This PR fixes #134834

Debt item from last week.

"engines": {
"vscode": "^1.57.0"
},
"enableProposedApi": true,
Copy link
Contributor Author

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)) {
Copy link
Contributor Author

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#
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added link to docs

@DonJayamanne DonJayamanne merged commit 79a3586 into microsoft:main Oct 12, 2021
@DonJayamanne DonJayamanne deleted the nbformat45 branch October 12, 2021 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade Jupyter Notebook files to use 4.5 format

5 participants