s-weigand / jupyterlab_autosave_on_focus_change

Jupyterlab extension to autosave files on focus change
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Conflict with Jupyter RTC #52

Open lahwaacz opened 1 week ago

lahwaacz commented 1 week ago

This extension conflicts with the Jupyter Real-Time Collaboration extension. RTC has its own autosave mechanism based on a time delay (0.5s by default). When a notebook is saved by RTC, autosave-on-focus-change detects a conflict and displays a dialog to either revert or overwrite the file:

jupyterlab-autosave-rtc-conflict

Note that when the RTC extension is active, files can be opened either in collaborative (default) or non-collaborative mode, so having both extensions at the same time would still make sense.

s-weigand commented 1 week ago

I can see how that is disturbing a user's workflow. However, I currently don't have the time to dive into a 3rd party codebase and figure out how things work there to implement a cross-extension interoperability (especially since I nowadays use vscode for my notebook needs and thus neither use this extension nor RTC myself). But PRs are welcome.

lahwaacz commented 1 week ago

Actually, fixing #51 already makes this much less of a problem (when the RTC autosave period is short enough)...