- Notifications
You must be signed in to change notification settings - Fork5.5k
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
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jtpio commentedMay 11, 2023
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 in573becf
|
andrii-i commentedMay 11, 2023
@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 inhttps://github.com/jupyter-server/jupyter_server through API endpoint or PageFile. Is it possible to detect if nbclassic is installed from |
JasonWeill commentedMay 11, 2023
The PyPI docs capitalize the project as |
andrii-i commentedMay 11, 2023
Thank you@JasonWeill. Updated capitalization in user-facing |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
JasonWeill left a comment
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
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
jtpio commentedMay 12, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 commentedMay 12, 2023
Uh oh!
There was an error while loading.Please reload this page.
jtpio commentedMay 17, 2023
@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 to28aba34CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
b7996d1 to4cc542cCompareandrii-i commentedMay 19, 2023
Failing test seems to be flakey. It passedin previous run, I can't reproduce it locally or on Gitpod |
andrii-i commentedMay 19, 2023
jtpio commentedMay 22, 2023
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. |
andrii-i commentedMay 24, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@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. |
tonyfast commentedMay 24, 2023
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. |
andrii-i commentedMay 24, 2023
@tonyfast Thank you for giving this a look and providing feedback |
0057146 tob48d4c8CompareUh oh!
There was an error while loading.Please reload this page.
f798f04 to936f647Compare
jtpio left a comment
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!
andrii-i commentedJun 9, 2023
Thank you@jtpio |

Uh oh!
There was an error while loading.Please reload this page.
Fixes#6746
Fixes#6792
"Open in..." dropdown menu


Single button

Command palette

"View" menu
