Rise v0.42.0 on JupyterLab v4.0.10 returns 404: Not Found
Opened this issue · 3 comments
Hi to everyone!
Description
When I try to start a slideshow (clicking on the Rise icon present in an open notebook),
I obtain "404: Not Found".
Looking at the console, I noted that if the notebook file is /test.ipynb
,
the server executes GET /rise/test.ipynb?activeCellIndex=0
, but there is no /rise/
app working!
testCompressed.mp4
Reproduce
I installed:
- Python 3.11.7 using
brew
- JupyterLab v4.0.10 using
pip3
- Rise v0.42.0 using
pip3 install jupyterlab_rise
Rise extension was not visible in the jupyter labextension list
,
so I ran jupyter-labextension install jupyterlab-rise
to see it.
Then,
- I run the server by
jupyter-lab
in the directory containing the notebook.
[ServerApp] Jupyter Server 2.12.4 is running at:
[ServerApp] http://localhost:8888/
-
I open a notebook (
test.ipynb
) without any problem, and I can modify and save it. -
I try to start a slideshow by clicking on the Rise icon present in an open notebook.
-
The browser shows a "404: Not Found" page.
-
In the log I see:
[ServerApp] 404 GET /rise/test.ipynb?activeCellIndex=0
Context
- Python package version:
0.42.0
- Extension version:
JupyterLab v4.0.10
Other labextensions (built into JupyterLab)
app dir: /opt/homebrew/Cellar/python@3.11/3.11.7/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab
jupyterlab-rise v0.42.0 enabled OK
- Operating System and its version: PowerBook Sonoma 14.2.1 (23C71).
- Browser and its version: Firefox 121
Command Line Output
➜ Settimana01 jupyter-lab [I 2024-01-12 09:05:33.733 ServerApp] jupyterlab | extension was successfully linked. [I 2024-01-12 09:05:33.757 LabApp] JupyterLab extension loaded from /opt/homebrew/lib/python3.11/site-packages/jupyterlab [I 2024-01-12 09:05:33.757 LabApp] JupyterLab application directory is /opt/homebrew/Cellar/python@3.11/3.11.7/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab [I 2024-01-12 09:05:33.757 LabApp] Extension Manager is 'pypi'. [I 2024-01-12 09:05:33.758 ServerApp] jupyterlab | extension was successfully loaded. [I 2024-01-12 09:05:33.759 ServerApp] Serving notebooks from local directory: /Users/posenato/Dropbox/Documenti/CorsiTenuti/CorsoASD/Aa202324/LucidiProgrammazioneII/Settimana01 [I 2024-01-12 09:05:33.759 ServerApp] Jupyter Server 2.12.4 is running at: [I 2024-01-12 09:05:33.759 ServerApp] http://localhost:8888/lab?token=5be030d815b6a5b35d588971b1b895038e3027cf251aece2 [I 2024-01-12 09:05:33.759 ServerApp] http://127.0.0.1:8888/lab?token=5be030d815b6a5b35d588971b1b895038e3027cf251aece2 [I 2024-01-12 09:05:33.759 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 2024-01-12 09:05:33.761 ServerApp]To access the server, open this file in a browser: file:///Users/posenato/Library/Jupyter/runtime/jpserver-3222-open.html Or copy and paste one of these URLs: http://localhost:8888/lab?token=5be030d815b6a5b35d588971b1b895038e3027cf251aece2 http://127.0.0.1:8888/lab?token=5be030d815b6a5b35d588971b1b895038e3027cf251aece2
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[W 2024-01-12 09:05:37.661 ServerApp] 404 GET /lsp/status?1705050337646 (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 12.57ms referer=http://localhost:8888/lab
[I 2024-01-12 09:05:37.867 LabApp] Build is up to date
[W 2024-01-12 09:05:37.936 ServerApp] 404 GET /rise/s01_2_introduzione.ipynb?activeCellIndex=0 (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 0.84ms referer=None
[I 2024-01-12 09:05:39.913 ServerApp] Kernel started: 92c6c744-f64d-49e5-a50a-04f93904ed43
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2024-01-12 09:05:46.321 ServerApp] Connecting to kernel 92c6c744-f64d-49e5-a50a-04f93904ed43.
[I 2024-01-12 09:06:10.728 ServerApp] Connecting to kernel 92c6c744-f64d-49e5-a50a-04f93904ed43.
[I 2024-01-12 09:06:21.495 ServerApp] Starting buffering for 92c6c744-f64d-49e5-a50a-04f93904ed43:137bc26d-07bd-4520-a606-be645626dea1
[I 2024-01-12 09:06:23.338 ServerApp] Connecting to kernel 92c6c744-f64d-49e5-a50a-04f93904ed43.
[I 2024-01-12 09:06:29.804 ServerApp] Saving file at /s01_2_introduzione.ipynb
[W 2024-01-12 09:06:29.881 ServerApp] 404 GET /rise/s01_2_introduzione.ipynb?activeCellIndex=0 (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 0.71ms referer=None
[I 2024-01-12 09:21:36.412 ServerApp] Saving file at /s01_2_introduzione.ipynb
[W 2024-01-12 09:21:36.455 ServerApp] 404 GET /rise/s01_2_introduzione.ipynb?activeCellIndex=0 (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 0.82ms referer=None
I have just found a partial solution.
I think the problem was given by the fact I installed Python using brew
and Jupyter lab using pip
.
Since brew
is fundamental to me, I decided to try to install all the stuff again, avoiding pip
.
So, I removed all the installations of Python 3.11.7 and JupyterLab v4.0.10,
and I re-installed both using only brew
.
brew
installs JupyterLab v4.0.10 not as a cask but using a formula. Moreover,
it installs Python 3.12 for JupyterLab.
Then, I ran jupyter lab,
and I installed jupyterlab-rise
using the extension manager tab presented in the browser.
(If I use pip
, jupyterlab-rise
does not work as before, even if I install it using pip3.12).
I shut down the server (refresh is not sufficient) and started it again.
The rise extension works almost perfectly.
I have only the following missing files
jupyter_lsp | extension was successfully linked.
jupyter_server_terminals | extension was successfully linked.
jupyterlab | extension was successfully linked.
jupyterlab_rise | extension was successfully linked.
notebook | extension was successfully linked.
notebook_shim | extension was successfully linked.
notebook_shim | extension was successfully loaded.
jupyter_lsp | extension was successfully loaded.
jupyter_server_terminals | extension was successfully loaded.
JupyterLab extension loaded from /opt/homebrew/Cellar/jupyterlab/4.0.10/libexec/lib/python3.12/site-packages/jupyterlab
JupyterLab application directory is /opt/homebrew/Cellar/jupyterlab/4.0.10/libexec/share/jupyter/lab
Extension Manager is 'pypi'.
jupyterlab | extension was successfully loaded.
jupyterlab_rise | extension was successfully loaded.
notebook | extension was successfully loaded.
...
...
404 GET /static/rise/img/sponge.png (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 0.64ms referer=http://localhost:8888/rise/Settimana01/s01_2_introduzione.ipynb
404 GET /static/rise/img/boardmarker-black.png (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 1.28ms referer=http://localhost:8888/rise/Settimana01/s01_2_introduzione.ipynb?activeCellIndex=0
404 GET /static/rise/img/chalk-white.png (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 1.14ms referer=http://localhost:8888/rise/Settimana01/s01_2_introduzione.ipynb?activeCellIndex=0
404 GET /static/rise/img/blackboard.png (7ccef137f56c44b4b8f833f4a39c1c92@127.0.0.1) 2.00ms referer=http://localhost:8888/rise/Settimana01/s01_2_introduzione.ipynb?activeCellIndex=0
I had the same issue - installing the jupyterlab extentions jupyterlab-rise
via pip is not resulting in a working setup, installing via Jypuyter-Lab extension manager works.
I had the same (404) issue running
- jupyterlab 4.0.2
- juperlab-rise 0.42.0
via jupyterhub on kubernetes.
Finally preinstalling the rise pluging via pip in the container solved the issue.
p.s. jupyterlab labextension install
is deprecated and pip/conda should be used.