-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Unable to Navigate Notebooks via URL: 'Path Not Found' Error #434
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
This is a duplicate of jupyterlab/jupyterlab#12768, but I'm going to leave it open, because even though the JupyterLab issue was opened first, the problem is almost certainly in this regular expression in JupyterLab Server: jupyterlab_server/jupyterlab_server/handlers.py Lines 33 to 35 in 8b8182d
In short, this does not capture solely valid URLs, such as those starting with |
Hi @JasonWeill, this above issue is because of directly referencing the dictionary object instead of creating a copy in Python. This leads to unintended shared state, where modifications made to the dictionary in one part of the code affect other references to the same dictionary object.
This makes a direct access to the page_config dictionary object, meaning that appending the notFoundUrl to this page_config persists throughout the instance. As a consequence, accessing the correct URL after this operation continues to trigger the same error mentioning the same path which is captured while accessing the wrong path.
So, creating a shallow copy of the object fixes this issue.👇
I have raised a PR for this, please have a look into it. |
Description
When attempting to open a specific notebook in JupyterLab using the file path URL (e.g., http://127.0.0.1:8888/lab/tree/work/my_notebook.ipynb), a popup with the error message "Path Not Found" appears. Consequently, the notebook fails to open.
Reproduce
jupyter/scipy-notebook:lab-4.0.7
http://127.0.0.1:8888/lab/tre
) providing a bad path. Observe the error message "Path Not Found" is displayed.http://127.0.0.1:8888/lab/tree/work/my_notebook.ipynb
). Notice that the same "Path Not Found" error persists, making navigation to the notebook with the URL impossible.Expected behavior
After providing a valid path in the URL, such as the path of a previously created notebook, the user should be able to navigate to the notebook without encountering a "Path Not Found" error.
Context
Command Line Output
No error message in the outputBrowser Output
The text was updated successfully, but these errors were encountered: