joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.71k stars 38 forks source link

Write unsaved changes to "swap" file. #117

Open luisbc92 opened 1 month ago

luisbc92 commented 1 month ago

Hello,

I had euporie freeze due to unknown reasons (have not been able to replicate), however because there is no record (unless there is?) of unsaved changes I lost my work.

Would it be feasible to implement a "swap file", very much like vim keeps to preserve changes that have not been commited to the file yet, in case of a crash?

joouha commented 1 month ago

Hi,

I this is a good idea and would be useful.

I believe that Jupyter does this by auto-saving copies in a folder called .ipynb_checkpoints (personally I find this way of doing it a bit annoying, but this might be the behaviour most users expect).