Skip to content

Conversation

@apeng-stripe
Copy link
Contributor

Preserve the document_id state that's used by Jupyter collaboration UI for server side execution mode.

Currently in jupyter-collaboration, if an out of band change happens (eg. user edits the file in non-RTC mode), the server will attempt to revert the document in memory to the source here, which is also the case in Jupyverse.

It deletes document_id in ystate and propagates it in an update to clients, to which they won't be able to execute cells anymore if server side execution mode is enabled, since they won't be able to provide a document_id in the HTTP execution request body. They will have to refresh their tab and sync again, as document_id is actually set on sync.

@krassowski krassowski added the bug Something isn't working label Nov 14, 2025
Copy link
Collaborator

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

Copy link
Collaborator

@davidbrochart davidbrochart left a comment

Choose a reason for hiding this comment

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

Sorry, I missed this one.

@krassowski krassowski changed the title Preserve document_id state when setting notebook source Preserve document_id state when setting notebook source Nov 15, 2025
@krassowski krassowski merged commit 165247d into jupyter-server:main Nov 15, 2025
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants