-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Currently any change to the disk timestamp of the file used by RTC will trigger full reload:
jupyter-collaboration/projects/jupyter-server-ydoc/jupyter_server_ydoc/rooms.py
Lines 336 to 337 in 67453e0
| self._document.source = model["content"] | |
| self._document.dirty = False |
This leads to issues such as:
Reproduce
- Install
jupyter-collaboration - Create a
test.ipynbnotebook with few cells, including interactive outputs, select the last one - In terminal run
touch test.ipynb - See that notebook widget reloads, with cursor jumping to the first cell
- See that cell outputs were reset and all intermediate state was lost
Expected behavior
- Only the subset of cells that actually changed gets reloaded (rather than a full document).
- looking at the codebase, I think this may need solving at
jupyter-ydoclevel
- looking at the codebase, I think this may need solving at
- For
touchthis should be a no-op- this could be solved here as a special case, since we would not want to change the dirty flag either
Context
- JupyterLab version: 4.5.0rc0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working