-
Notifications
You must be signed in to change notification settings - Fork 62
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
Jupyter logo "dashboard" link goes to default app, breaking out of classic #167
Comments
I guess this is not intended and clicking the top left logo should return to the nbclassic tree view, whatever command is used. Maybe the fix is easy, but it sounds like it deserves enough care to cover all cases. Depending on the installe packages (notebook 7 or not...), the used command, and also the special case of Notebook 6.5.x that reuses the NbClassic static assets, we must be sure the correct link is generated. A not so nice way, thought easy, way to handle that would be to inject an additional property in the jinja context that would be populated with the needed URL based on the some condition. |
Did not know about the Notebook v6 dependency on NBClassic, interesting. I thought about this some more and had another concern for after the NBv7 transition. At least currently, NBClassic relies on "Notebook" to provide the terminal and possibly other UI components. Is that planned to always be the case? Because that situation would be even harder if not impossible to address since you are actually executing in the Jupyterlab/Notebookv7 code branches, not NBClassic at that point. Stream of consciousness here: |
We can know if |
I did a proof of concept to make it only affect NBClassic not Notebook v6, but it is a bit hacky at the moment. I only used what was currently available to the templates: |
not sure to fully understand.
How can you ensure you know what command is invoked. I trust you when you say POC is working for you, just trying to understand. I am not against adding an additional property like |
Yeah, my first cut ONLY affected nbclassic with Notebook v7 because my goal was to not break v6 at all and just to see how it could work. Pre-setup:
Test 1:
Test 2:
Test 3:
|
Super! Would you mind opening a PR with your last diff. I will then review and test with various setups and commands. |
Oops Meant to go back and to squash the old commits, but that can be done on merge |
Could be intended, could be no one thought about it because they still have classic as their default
Scenario:
jupyter server
orjupyter lab
(orjupyter notebook
if using notebook v7 + nbclassic)This means if you are using classic, and open a notebook, the only way back to the tree view is the file->open menu, but anyone who has been using classic a long time is probably used to that logo going back to the /tree view. This affects anyone today with Notebook v6 with lab being the default ui in their environment, so this has been going on a while in some places, but just noticed this myself.
is this desired/intended behavior or has this just been overlooked since "notebook" was the default for so long? This is the line in the template that makes it so:
nbclassic/nbclassic/templates/page.html
Line 141 in 327c9a0
The text was updated successfully, but these errors were encountered: