-
Notifications
You must be signed in to change notification settings - Fork 307
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
Fix notebook URL opened in browser when redirect file not used #1326
base: main
Are you sure you want to change the base?
Fix notebook URL opened in browser when redirect file not used #1326
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
If this PR is on the right track, I can try adding some tests. Lmk. |
With `notebook~=7.0` ServerApp is responsible for launching browser, not NotebookApp anymore. In `notebook~=6.0`, `launch_browser` will append notebook path for opening in browser even when `use_redirect_file` is set to `false` - unlike ServerApp, ever since 60c66b6.
00447c1
to
3083173
Compare
@Zsailer, thanks for taking a look. I can take a crack at writing a test, and then ping you when I think it's ready for review. |
Great! thanks @randomir! Let me know if you need any help or have any questions around our unit tests. |
From my perspective, it appears this is not limited to notebooks but to jupyterlab as well. It appears that the With this PR, will Thank you. |
Fix #1325.
With
notebook~=7.0
ServerApp is responsible for launching browser, not NotebookApp anymore. Innotebook~=6.0
,launch_browser
will append notebook path for opening in browser even whenuse_redirect_file
is set tofalse
.ServerApp used to do the same, last time in v1.3.0. The change in behavior/bug seems to be introduced in 1bbcbcb359, released as 1.4.0.