-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Creation of redirect fail breaks use of jupyter notebook list
#4283
Comments
Tagging @takluyver as original committer of 270c0f9 |
Introduced in 5.7.3 |
Gah, sorry. I didn't think to check that, and our test suite wasn't sufficient to pick it up. #4284 should fix it, and add the missing test. Can you give that a try and check that there aren't any other problems affecting your use cases? Hopefully I can do a 5.7.4 soon. |
No worries, I was able to revert to 5.7.2 which works fine. I'll test against the fix now and confirm it works OK. |
Looks good to me. I've checked out the fix and |
Thanks! I'm going to bed soon, so 5.7.4 will probably be tomorrow. |
Description
The introduction of a redirect file in 270c0f9 breaks usage of
jupyter notebook list
, as the logic for determining running notebook servers relies on iterating over all files in runtime-dir with prefix "nbserver-" and trying to load as JSON.See:
notebook/notebook/notebookapp.py
Line 1842 in 51dae23
Reproduction
jupyter notebook
jupyter notebook list
Error:
Change
The use of the redirect file (format
nbserver-%s-open.html
) breaks this assumption and causes a JSON parsing error (trying to parse an HTML file as JSON).How to fix
Two possibilities for resolving:
nbserver-\d+.json
The text was updated successfully, but these errors were encountered: