Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JupyterLab keep restoring file modified outside of JupyterLab #163

Open
trungleduc opened this issue Jun 10, 2023 · 1 comment
Open

JupyterLab keep restoring file modified outside of JupyterLab #163

trungleduc opened this issue Jun 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@trungleduc
Copy link
Member

In JupyterCAD and gluel-lab, we registered new document types with jupyter_ydoc to be able to modify them collaboratively.
If the document is opened in JupyterLab once, and then it is modified externally while JupyterLab is not running, the next time I open this document in Lab, the content is restored from the database. The only way to keep the new content is to remove the database in the current working directory.

From the server log, I believe this is the intention of jupyter_ydoc, but I feel like it creates a lot of confusion for a normal user. If there aren't technical constraints, I think we should allow users to disable this behavior or at least give them a warning before overwriting the file.

@trungleduc trungleduc added the bug Something isn't working label Jun 10, 2023
@welcome
Copy link

welcome bot commented Jun 10, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant