-
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
Add option to open a notebook in NbClassic if it is enabled; show "Open in..." dropdown menu if there are multiple options, show single button otherwise #6866
Conversation
Thanks @andrii-i for working on this.
Since this feature is specific to the Probably the page config option could be set somewhere here: Line 35 in 573becf
|
@jtpio thank you for looking into this PR. I was under assumption that because nbclassic is a server extension I need to expose this information in https://github.com/jupyter-server/jupyter_server through API endpoint or PageFile. Is it possible to detect if nbclassic is installed from |
The PyPI docs capitalize the project as |
Thank you @JasonWeill. Updated capitalization in user-facing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent interCaps
I would assume it should be possible to detect it here from Also it would be fine to have that logic here in the |
@andrii-i since the default is now a button we'll have to update the reference snapshots for the UI tests. Thinking we could also expand the UI tests to cover the case when |
2acb833
to
28aba34
Compare
b7996d1
to
4cc542c
Compare
Failing test seems to be flakey. It passed in previous run, I can't reproduce it locally or on Gitpod |
Ah right, this is likely because the page config will only be passed to the frontend when served from the notebook application. Wondering if a better could then to pass a parameter via a server extension that would be distributed via the lab extension. |
@tonyfast tagging you to follow up on a discussion during todays JupyterLab call about displaying dropdown menu in cases where there is more than 1 option in "Open in..." menu (used to be called "Interface" menu) and a button otherwise. Please see these threads for a previous discussion on the topic: #6746 (comment), #6866 (comment). Bottomline: we don't expect users to see this UI in its different variants often (and never at once) so having extra friction of dropdown menu with only 1 option seems to be not worth it. Would be interested to hear your opinion. |
originally, i thought it didn't make sense to switch the semantics of the UI. now that i see it is a feature being degraded and deprecated then switching semantics makes sense to me. they actually are different things now. steady on. good stuff. thanks for including me. |
@tonyfast Thank you for giving this a look and providing feedback |
0057146
to
b48d4c8
Compare
f798f04
to
936f647
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thank you @jtpio |
Fixes #6746
Fixes #6792
"Open in..." dropdown menu
Single button
Command palette
"View" menu