Repository navigation
Keep AiiDAlab terminal pages on nbclassic - #622
Conversation
|
Hi @edan-bainglass and @yakutovicha, could you check this PR together with aiidalab/aiidalab-home#278 for #621? We tested the integrated changes in an isolated local JupyterHub preview using the unchanged timer from aiidalab/aiidalab-demo-server#97. The countdown is now visible on Home, File Manager, Tasks and Terminal, and I have also checked the preview manually. Please keep the release order explicit: merge/release the Home fix first, then update the Docker image's Home pin before merging this PR. @yakutovicha, are you already working on the SSH-key permission problem in #620, or do you have a branch we should build on? I checked the public issue, PRs and branches but found no current ownership recorded, so I would like to avoid duplicating anything you have underway. If you already have a fix in progress, it would be great to coordinate its completion so we can aim for a new image release containing both fixes once validated. @edan-bainglass, if there is no existing SSH fix to build on, would you also be available to check a forthcoming separate PR for #620? |
Not sure I understand what you're asking here 😅 |
| assert re.search(r"appmode/main\s+enabled", output) | ||
|
|
||
|
|
||
| def test_classic_file_browser_and_terminal(notebook_service, aiidalab_exec): |
There was a problem hiding this comment.
Just making sure: can we verify that these tests fail without the jupyter_server_config.py change?
There was a problem hiding this comment.
Yes, verified using the unchanged tests/test_lab.py::test_classic_file_browser_and_terminal from head 39fa7a1.
I ran it twice in the same isolated ARM64 full-stack container (Notebook 7.4.5, nbclassic 1.3.1, Jupyter Server 2.16.0), changing only the deployed jupyter_server_config.py and restarting the server:
- Original configuration from
main(457ed0f): 1 failed, atassert 'id="terminado-container"' in response.text. The terminal page returns HTTP 200 but serves the Notebook 7 template. - Configuration from this PR: 1 passed.
The file-browser assertion passes in both cases; the terminal assertion is what detects this regression. The test body was unchanged; local fixture adapters ran it inside the existing test container instead of starting another Compose stack. Terminal cleanup was verified in both runs. The original configuration was restored and the test container stopped afterwards.
edan-bainglass
left a comment
There was a problem hiding this comment.
Thanks @cpignedoli. The change seems reasonable and is inline with what I had to do locally to verify the session timer in aiidalab/aiidalab-demo-server#97. LGTM! Good to go once the home app PR is in and the new version is pinned here.
danielhollas
left a comment
There was a problem hiding this comment.
Seems fine, though the tests look quite sloppy. I wonder if we should just have tests in aiidalab-home for this, I don't think they quite fit here. That would mean merging this first so that the tests on aiidalab-home can pass (the selenium tests there pull the edge image)
|
@danielhollas, I agree that the browser-facing regression belongs in aiidalab-home’s Selenium tests. I propose moving that coverage there and testing Home against the image built from this PR. One sequencing detail needs coordination. Disabling Notebook 7 with the currently pinned Home version leaves its |
I tested, but it seems that the terminal is still using notebook 7 (the logo is still the one from Jupyter, not AiiDAlab)
|
yakutovicha
left a comment
There was a problem hiding this comment.
@cpignedoli, can you double check that we are trully using the nbclassic, and not notebook 7 for the terminal?
|
on it @yakutovicha |
|
@yakutovicha, I rechecked the exact configuration from head I reran the unchanged
Both results were reproduced at Your screenshot does look like the Notebook 7 terminal, so the discrepancy is still worth resolving. Could you share the image tag/digest and launch command you tested? Does its Notebook 7 intentionally remains installed; this PR disables its server extension so that nbclassic handles the terminal URL. |
|
@cpignedoli - I rechecked; it was my mistake. I pulled the wrong image. Everything works as expected. |

Notebook 7 currently serves
/terminals/<name>ahead of nbclassic, so the terminal misses AiiDAlab branding, controls and classic frontend extensions such as the demo session timer. Disable only the Notebook 7 server extension in the lab image's Jupyter configuration. The installed Notebook package and JupyterLab interface remain available.Adds a runtime regression test that checks the classic file-browser template, creates a terminal, verifies its classic template/assets and cleans it up. Existing formatting is preserved.
Addresses #621 together with aiidalab/aiidalab-home#278.
Release dependency
Keep this PR in draft until aiidalab/aiidalab-home#278 has been merged and released, and
build.json'sAIIDALAB_HOME_TAGhas been updated to that verified release. The currentv26.11.0pin is intentionally unchanged: disabling Notebook 7 while retaining the old Home shortcuts leaves/treeunavailable.Validation
test_classic_file_browser_and_terminaltwice in the same ARM64 full-stack 2026.1032 container, changing onlyjupyter_server_config.py: original configuration fails at the classic terminal element assertion; PR configuration passes. Notebook 7.4.5, nbclassic 1.3.1 and Jupyter Server 2.16.0 were unchanged. Local fixture adapters reused the isolated container; terminal cleanup was verified in both runs./user/test-user/prefix.pip checkpass.Prepared with the assistance of Codex.