jupyterlab-contrib / rise

RISE: "Live" Reveal.js JupyterLab Slideshow Extension
BSD 3-Clause "New" or "Revised" License
182 stars 18 forks source link

Error 404: Not found #6

Open pakiessling opened 1 year ago

pakiessling commented 1 year ago

Hi,

thank you for this tool, I am very excited to try it out. Unfortunately, my Slideshow is permanently stuck at 404: Not found. Server log says:

404 GET /rise/Untitled.ipynb?activeCellIndex=0 (127.0.0.1) 1.93ms referer=None
404 GET /api/metrics/v1?1673946162947 (127.0.0.1) 3.31ms referer=http://localhost:8888/lab/tree/Untitled.ipynb

Rise version 0.1.0 Jupyter lab version 3.4.4 I am accessing jupyter lab server running on CentOS via a ssh tunnel from my Macbook.

Any ideas?

joaquinvanschoren commented 1 year ago

I'm getting the same error. Any updates on this?

Many thanks!

joaquinvanschoren commented 1 year ago

For me it got fixed by reinstalling conda and then jupyterlab_rise.

fcollonval commented 1 year ago

This error is likely to be due to the server extension not installed.

Could you execute:

jupyter server extension list
jupyter serverextension list

If it is correctly installed, you should see

    jupyterlab_rise  enabled 
    - Validating...
      jupyterlab_rise 0.1.0 OK

If not try uninstalling and re installing the package.

ipcoder commented 1 year ago

Same issue here, not solved by re-installing extension. Had to manually install the package

> mamba install jupyterlab_rise
> jupyter serverextension enable jupyterlab_rise
martijnende commented 1 year ago

I'm having the same issue with jupyterlab==4.0.5.

jupyter server extension list gives me

Config dir: /home/vanden/.jupyter

Config dir: /home/vanden/miniconda3/envs/rise/etc/jupyter
    jupyter_lsp enabled
    - Validating jupyter_lsp...
Package jupyter_lsp took 0.0061s to import
A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
      jupyter_lsp 2.2.0 OK
    jupyter_server_terminals enabled
    - Validating jupyter_server_terminals...
Package jupyter_server_terminals took 0.0029s to import
      jupyter_server_terminals 0.4.4 OK
    jupyterlab enabled
    - Validating jupyterlab...
Package jupyterlab took 0.0340s to import
      jupyterlab 4.0.5 OK
    jupyterlab_rise enabled
    - Validating jupyterlab_rise...
Package jupyterlab_rise took 0.0012s to import
      jupyterlab_rise 0.40.0 OK
    notebook enabled
    - Validating notebook...
Package notebook took 0.0000s to import
      notebook 7.0.2 OK
    notebook_shim enabled
    - Validating notebook_shim...
Package notebook_shim took 0.0000s to import
A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
      notebook_shim  OK

Config dir: /usr/local/etc/jupyter

which looks all OK. But jupyter serverextension list fails with

usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug] [subcommand]

Jupyter: Interactive Computing

positional arguments:
  subcommand     the subcommand to launch

options:
  -h, --help     show this help message and exit
  --version      show the versions of core jupyter packages and exit
  --config-dir   show Jupyter config dir
  --data-dir     show Jupyter data dir
  --runtime-dir  show Jupyter runtime dir
  --paths        show all Jupyter paths. Add --json for machine-readable format.
  --json         output paths as machine-readable json
  --debug        output debug information about paths

Available subcommands: console dejavu events execute kernel kernelspec lab labextension labhub migrate nbconvert notebook qtconsole run server troubleshoot trust

Jupyter command `jupyter-serverextension` not found.

Output of conda list | grep jupyter:

jupyter                   1.0.0           py310h06a4308_8  
jupyter-lsp               2.2.0              pyhd8ed1ab_0    conda-forge
jupyter_client            8.3.0              pyhd8ed1ab_0    conda-forge
jupyter_console           6.6.3           py310h06a4308_0  
jupyter_core              5.3.1           py310hff52083_0    conda-forge
jupyter_events            0.7.0              pyhd8ed1ab_2    conda-forge
jupyter_server            2.7.1              pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.4.4           py310h06a4308_1  
jupyterlab                4.0.5              pyhd8ed1ab_0    conda-forge
jupyterlab-rise           0.40.0                   pypi_0    pypi
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.24.0             pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        3.0.8              pyhd8ed1ab_0    conda-forge
adrienpacifico commented 1 year ago

I also have this issue with jupyterlab_rise.

I am using jupyterlab docker image with jupyterlab version 4.0.2.

After installing the extension with pip install jupyterlab_rise running jupyter serverextension list returns

config dir: /home/jovyan/.jupyter
    jupyterlab_rise  enabled 
    - Validating...
      X is jupyterlab_rise importable?

Without the "Ok" after that is included with all the other serverextension.

Is it because I am using a docker image without X?

Edit: I tried this recipe (present on the jupyter docker stacks project), and the library works.

https://jupyter-docker-stacks.readthedocs.io/en/latest/using/recipes.html#slideshows-with-jupyterlab-and-rise