-
Notifications
You must be signed in to change notification settings - Fork 403
Description
Hi!
I am using JupyterLab together with Jupytext (which is great btw) and paired one of my notebooks my-notebook.ipynb
with a percent script my-notebook.py
.
When I am doing bigger changes and refactoring I am usually using Vim/Neovim for modifying the my-notebook.py
directly.
For getting those changes back into my my-notebook.ipynb
file I am using "Reload Notebook from Disk" in JupyterLab.
This also works as expected as I can see that the code part of my .ipynb notebook (in memory) is now equivalent to the content of the .py script.
However, whenever I now want to save the .ipynb notebook to disk I get the following warning:
File Changed
"my-notebook.ipynb" has changed on disk since the last time it was opened or saved.
Do you want to overwrite the file on disk with the version open here, or load the version on disk (revert)?
Basically, it doesn't matter if I choose to revert or overwrite then as the .ipynb file gets correctly saved.
Even though this issue is only a little inconvenience, I am wondering: Is this to be expected or am I doing something wrong here?
May it be that this warning has something to do with the timestamp which the .ipynb notebook (in memory) "inherits" when reloading from disk w.r.t. the timestamps of the ipynb notebook (on disk) and the .py script (on disk)?