-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Timeline slider not shown when base_url is set #393
Comments
Actually, exactly the same problem takes place even without
|
Updated reportDescriptionWhen Jupyter Lab starts with a custom ![]() As can be seen from this screenshot, the url has the fragment If I manually change the url by removing one duplicate and open it in a browser, it appears to be working fine:
Reproduce
Expected behaviorA slider should appear next to the timeline icon. Context
Command Line Output% jupyter lab --ServerApp.base_url='/user/bob' [I 2024-11-07 16:16:01.969 ServerApp] jupyter_lsp | extension was successfully linked. [I 2024-11-07 16:16:01.971 ServerApp] jupyter_server_fileid | extension was successfully linked. [I 2024-11-07 16:16:01.972 ServerApp] jupyter_server_terminals | extension was successfully linked. [I 2024-11-07 16:16:01.974 ServerApp] jupyter_server_ydoc | extension was successfully linked. [I 2024-11-07 16:16:01.976 ServerApp] jupyterlab | extension was successfully linked. [I 2024-11-07 16:16:02.182 ServerApp] notebook_shim | extension was successfully linked. [I 2024-11-07 16:16:02.225 ServerApp] notebook_shim | extension was successfully loaded. [I 2024-11-07 16:16:02.227 ServerApp] jupyter_lsp | extension was successfully loaded. [I 2024-11-07 16:16:02.227 FileIdExtension] Configured File ID manager: ArbitraryFileIdManager [I 2024-11-07 16:16:02.227 FileIdExtension] ArbitraryFileIdManager : Configured root dir: /private/tmp/2 [I 2024-11-07 16:16:02.227 FileIdExtension] ArbitraryFileIdManager : Configured database path: /Users/ecull/Library/Jupyter/file_id_manager.db [I 2024-11-07 16:16:02.229 FileIdExtension] ArbitraryFileIdManager : Successfully connected to database file. [I 2024-11-07 16:16:02.229 FileIdExtension] ArbitraryFileIdManager : Creating File ID tables and indices with journal_mode = DELETE [I 2024-11-07 16:16:02.229 FileIdExtension] Attached event listeners. [I 2024-11-07 16:16:02.230 ServerApp] jupyter_server_fileid | extension was successfully loaded. [I 2024-11-07 16:16:02.230 ServerApp] jupyter_server_terminals | extension was successfully loaded. [I 2024-11-07 16:16:02.233 ServerApp] jupyter_server_ydoc | extension was successfully loaded. [I 2024-11-07 16:16:02.234 LabApp] JupyterLab extension loaded from /opt/homebrew/Caskroom/miniconda/base/envs/jc/lib/python3.13/site-packages/jupyterlab [I 2024-11-07 16:16:02.234 LabApp] JupyterLab application directory is /opt/homebrew/Caskroom/miniconda/base/envs/jc/share/jupyter/lab [I 2024-11-07 16:16:02.234 LabApp] Extension Manager is 'pypi'. [I 2024-11-07 16:16:02.244 ServerApp] jupyterlab | extension was successfully loaded. [I 2024-11-07 16:16:02.245 ServerApp] Serving notebooks from local directory: /private/tmp/2 [I 2024-11-07 16:16:02.245 ServerApp] Jupyter Server 2.14.2 is running at: [I 2024-11-07 16:16:02.245 ServerApp] http://localhost:8888/user/bob/lab?token=bf0b13662ad05739f3df0a59bdd549cc497547156a52c91f [I 2024-11-07 16:16:02.245 ServerApp] http://127.0.0.1:8888/user/bob/lab?token=bf0b13662ad05739f3df0a59bdd549cc497547156a52c91f [I 2024-11-07 16:16:02.245 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 2024-11-07 16:16:02.249 ServerApp] Browser Output[Warning] Unsatisfied version 3.0.0 from @jupyterlab/application-top of shared singleton module @jupyter/ydoc (required ^2.0.1) (remoteEntry.df025193a26e76919ed8.js, line 1) [Warning] Language pack 'en_US' not installed! (jlab_core.30ac71af4fabafb542d8.js, line 1) [Debug] Starting application in workspace: "default" (jlab_core.30ac71af4fabafb542d8.js, line 1) [Debug] Starting WebSocket: ws://localhost:8888/user/bob/api/kernels/81f4f380-8fb5-4ca1-9767-cb4aa2ccd5ac (jlab_core.30ac71af4fabafb542d8.js, line 1) [Debug] Starting WebSocket: ws://localhost:8888/user/bob/api/kernels/81f4f380-8fb5-4ca1-9767-cb4aa2ccd5ac (jlab_core.30ac71af4fabafb542d8.js, line 1) [Debug] Starting WebSocket: ws://localhost:8888/user/bob/api/kernels/81f4f380-8fb5-4ca1-9767-cb4aa2ccd5ac (jlab_core.30ac71af4fabafb542d8.js, line 1) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) [(Untitled.ipynb, line 0)](http://localhost:8888/user/bob/api/collaboration/timeline/collaboration/timeline/Untitled.ipynb?format=json&&type=notebook&1730992582902) [Error] Error fetching data: – Error: Not found — 618.28407d2343b911e61b63.js:0 Error: Not found — 618.28407d2343b911e61b63.js:0 (anonymous function) (618.28407d2343b911e61b63.js:1:15066) |
See below for an updated report
OLD Description
When Jupyter Lab is started as as single-user server in Jupyter Hub, the document timeline widget uses an incorrect url, which can be seen from the browser console when clicking on the timeline icon:
As can be seen from this screenshot, the url has the part
/collaboration/timeline
two times.If I manually change the url by removing one duplicate and open it in a browser, it appears to be working fine:
Reproduce
conda install -c conda-forge jupyterhub jupyterlab jupyter-collaboration
jupyterhub --JupyterHub.authenticator_class='dummy' --JupyterHub.spawner_class='simple'
http://localhost:8000
and enter any user name, e.g.,bob
Expected behavior
A slider should appear next to the timeline icon.
Context
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: