Skip to content

Conversation

@krassowski
Copy link
Collaborator

@krassowski krassowski commented Nov 21, 2025

Before

(+) the changes from running cell get written to the output
(-) these are not propagated back correctly and subsequent reloads from disk lead to an inconsistent state

Screencast.From.2025-11-21.11-17-01.mp4

After

(+) no inconsistent state
(-) reload of outputs from disk means that subsequent writes are not respected

Screencast.From.2025-11-21.11-15-21.mp4

@krassowski krassowski added the bug Something isn't working label Nov 21, 2025
@krassowski krassowski marked this pull request as ready for review November 21, 2025 11:24
@krassowski krassowski changed the title Add a test for outputs being hard-reset Hard-reload a cell if its outputs change Nov 21, 2025
@krassowski
Copy link
Collaborator Author

Maybe we can instead implement outputs handling here. It looks like it would be a minimal change.

@krassowski
Copy link
Collaborator Author

Maybe we can instead implement outputs handling here. It looks like it would be a minimal change.

I attempted that in main...krassowski:jupyter_ydoc:implement-outputs-creation but it was not enough - we would need more changes on the frontend. In the meantime I think the best short-term strategy is to perform a hard-reload on cells if outputs changed and the new value includes a stream type output.

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.

Yes I think it requires changes in the frontend.

@krassowski krassowski merged commit 0a0d0bc into jupyter-server:main Nov 21, 2025
22 checks passed
@krassowski krassowski changed the title Hard-reload a cell if its outputs change Hard-reload a cell if its outputs change and include stream Nov 21, 2025
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.

Replacing cell outputs should hard-reload

2 participants