-
Notifications
You must be signed in to change notification settings - Fork 5k
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
opening jupytext notebook with a base_url is failing #6942
Comments
Thanks @parmentelat for reporting. Another odd thing when looking at the screencast above is that when selecting Maybe it's an issue with this handler: Lines 332 to 337 in 8efd94a
|
with the change from https://github.com/jupyter/notebook/actions/runs/5345232824?pr=6943, what I see for the URLs is this
as you can see in both cases the URL contains
|
This is likely because of the folloiwing regex if the file extension is Line 334 in 8efd94a
|
I am also seeing another couple differences between the notebook views for a ipynb and a jupytext :
Edit: it appears the second problem is an artefact of the scrollbar, so please let's forget about that... see the screenshot below I guess it might be related to the Edit |
Yes. The notebook/packages/application-extension/src/index.ts Lines 269 to 272 in 8efd94a
Maybe the proper fix would be to make sure the Jupytext notebooks are open with Not sure if this redirect to |
totally agreed :) |
It was added in jupyterlab/retrolab#98 |
Just tried locally and it seems to be working:
|
One idea could be to modify the regex so the redirect handler does not apply when the URL contains Line 334 in 8efd94a
|
Just wanted to share that I've tried Notebook 7.0.0rc2 in which providing a
@parmentelat, did Notebook 7.0.0rc2 address this problem or did I misunderstand this issue? |
so, 7.0.0rc2 does address the initial concern, in that I no longer get a 404 and the notebook does open however as you noticed, the
so to summarize, I can live with what 7.0.0rc2 gives us, but I quite agree that there remains possible improvements |
Thank you for the detailed clarification @parmentelat! |
Description
possibly related to #6914
getting a 404 error when using the Open with → Notebook menu on a jupytext notebook
this capture was made when running
the 2 first first attempts work fine:
the video may not be super clear but in both these cases the new tab's URL contains the base_url
BUT
Reproduce
see above; this is with
Context
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: