Hi everyone,
I have been running into a persistent issue with Jupyter notebooks in Cursor on macOS.
When the Agent edits a .ipynb file, the file appears to be updated correctly on disk, but the notebook editor that is already open in Cursor does not refresh. The new code or changed cells only appear after I close the notebook tab, discard/reload the stale version, and then reopen the file.
This started happening a couple of weeks ago and was working perfectly before. I have already tried reinstalling Cursor, as it makes it basically unusable (having to ask Cursor to save an updated version after every single edit that then I can reload).
Not sure if the same happens to others, workflow wise:
-
I open a Jupyter notebook in Cursor,
-
I ask the Agent to modify the notebook, for example by adding or changing code cells.
-
The Agent reports that the notebook file has been updated.
-
The open notebook view in Cursor does not show the new or modified cells. If I run the loaded notebook, it is indeed the old version, so e.g. bug fixed that Cursor’s Agents did, are not loaded.
-
If I close the notebook, discard the stale open version, and reopen the same file, the changes are visible and can actually be run.
This seems specific to only the rendered notebooks. If I close and reopen the file, the changes are there. With other files, it also seems to work. So the problem seems to be the notebook editor cache/refresh etc., rather than the Agent failing to edit the file. Just in case it’s relevant, the files are within dropbox, but offline and just synced…
Is there a setting or workaround to force notebook tabs to reload when the underlying .ipynb file change?
Thanks so much!