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

Notebook becomes blank/"empty" - JupytextContentsManager.get() got an unexpected keyword argument 'require_hash'") #1288

Closed
bjornarfjelldal opened this issue Dec 11, 2024 · 3 comments

Comments

@bjornarfjelldal
Copy link

bjornarfjelldal commented Dec 11, 2024

Using current latest everything (JupyterLab 4.3.2, Jupyterhub k8s 4.0.0 (5.2), jupytext 1.16.4). RTC enabled. Datascience base image (lab-4.3.2)

On certain notebooks, this error is thrown in the Log when opening and/or saving it:

[json:notebook:2c141ddc-2c27-4428-9db4-6e8e88286692] : Error saving file: jupytext-error.ipynb
TypeError("build_jupytext_contents_manager_class.<locals>.JupytextContentsManager.get() got an unexpected keyword argument 'require_hash'")

bilde

And it will in the end either not load (blank notebook) or only show the first 4 cells and not expand to the rest.

Ideas, anyone?

@mwouts
Copy link
Owner

mwouts commented Dec 11, 2024

Interesting, possibly the argument becomes mandatory. Can you give a try at this development version and let me know how it goes?

#1202 (comment)

@bjornarfjelldal
Copy link
Author

bjornarfjelldal commented Dec 11, 2024

Impressively fast answer, @mwouts ! Looks like this works! What also works is to not include RTC/jupyter_collaboration on the current 1.16.4 version (but we would of course like to enable that)

@mwouts
Copy link
Owner

mwouts commented Dec 15, 2024

Impressively fast answer, @mwouts ! Looks like this works!

Thanks for your feedback! I have just merged #1202 and will now release Jupytext 1.16.5, however using both Jupyter collaboration and Jupytext is something brand new and untested - please let me know how it works. Thanks

@mwouts mwouts closed this as completed Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants