-
Notifications
You must be signed in to change notification settings - Fork 309
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
v2 breaks jupyterlab with jupytext
extension
#1127
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Hi @st-bender - thank you for bringing this to our attention. Could you please include any error stacks produced on your server's console window (the window in which you started I'm unable to reproduce the first issue (open/save any existing notebook). However, if I create a new notebook and am prompted to rename the untitled notebook on first save, and change the name, I see the following in my console window:
Note that no error is displayed on the UI and all appears to work (from an end-user perspective). Also note that if I do not change the name and just keep the "untitledN" entry, then select |
Hi @kevin-bates I observe the same error output when saving a notebook as in: mwouts/jupytext#1020 (comment) And a very similar error output when creating a new notoebook:
|
@st-bender - thanks for the update. Since it looks like
or configuration file via:
Could you please try either of those to see if that gets you further? (Although please note that I only confirmed the CLI option prior to writing this response and do not have Looking at the (Hmm, on a side note, I suspect we might have a general "rename on first save" issue here (per my previous response).) |
Hi @kevin-bates I can confirm that it works with setting the config option you suggested, it also works with the suggestion from the linked issue:
or
(Although in practice I used the I guess a proper fix would be for |
jupytext
extension
PS The code you linked to seems to fail or is ignored for some reason, I observed the following in the console output. Not working (i.e. without config option):
Working:
Cheers. |
Indeed the I am willing to fix that. I see that the documentation mentions example tests on the Jupyter contents managers, but I can't seem to find them at Also the problem was not spotted in the Jupytext CI as the Jupytext CM used in the test is derived from a Thanks! |
Hi @mwouts, you can use the following to check: >>> from jupyter_server.serverapp import ServerApp
>>> ServerApp.contents_manager_class.default()
jupyter_server.services.contents.largefilemanager.AsyncLargeFileManager As for tests, they have moved to https://github.com/jupyter-server/jupyter_server/tree/main/tests/services/contents |
Thank you @blink1073 , your two comments above are super helpful. I am undecided on what is the best approach, may I ask what solution you think is best?
I started studying 2 at mwouts/jupytext#1021 and I got a (small) fraction of my own tests passing. As I am not very much used to Also - sorry that's probably a beginner question, and probably not a great idea neither? - would it make sense (e.g. for avoiding impacting the test suite too much) to let the Jupytext CM not async, and use |
We've moving toward a state of all the managers being async, so I'd say now is a good time to do a full transition. The async class will work in all versions of Jupyter Server. The pattern you're using of using |
Thanks for the update @st-bender - glad there's a workaround using 2.0. What I'm still confused about, since jupytext's contents manager ( (This will likely be moot once |
Hi @kevin-bates , well actually in Jupytext there's not a single contents manager, but instead a function That might sound a bit complex, but I decided to do so when the Now, unless the user has a specific config, that function As a quick fix Then I plan to make Jupytext's CM async in |
Hi @kevin-bates |
Thanks @st-bender for the report, and @mwouts for the fix! |
Description
Hi,
My search did not turn up anything useful, nor could I find something in the changelog.
After updating
jupyter-server
to v2.0.1, I observed several issues with jupyterlab.One issue stops the notebooks from being saved with an error message that a "coroutine is not subscriptable".
The second issue breaks starting new notebooks with whatever kernel with a very uninformative message "unhandled error" (nothing else).
Reproduce
jupyter lab
2b. Click on 'New' -> 'Notebook'
3b. Second error occurs.
Downgrading
jupyter-server
to 1.23.3 fixes both issues.Expected behavior
Context
Troubleshoot Output
(Grepped "jupyter" to shorten the list a little, let me know if you need more package details.)The text was updated successfully, but these errors were encountered: