jupyterlab / jupyter-collaboration

A Jupyter Server Extension Providing Support for Y Documents
https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/
Other
157 stars 30 forks source link

No collaborator panel in development mode #283

Closed davidbrochart closed 5 months ago

davidbrochart commented 5 months ago

Description

After setting up a development environment, JupyterLab doesn't show the collaborator panel. Collaborating on a notebook works fine though. Am I missing something?

Reproduce

pip install -e .
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
jupyter labextension develop --overwrite projects/jupyter-collaboration-ui
jupyter labextension develop --overwrite projects/jupyter-docprovider
martinRenou commented 5 months ago

Do you have a JavaScript error message in the console?

What does jupyter labextension list give you?

davidbrochart commented 5 months ago

It seems that it depends on the installation order:

$ pip install -e .
$ pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
$ pip install jupyterlab
$ jupyter labextension develop --overwrite projects/jupyter-collaboration-ui
$ jupyter labextension develop --overwrite projects/jupyter-docprovider

jupyter-collaboration is not installed:

$ jupyter labextension list
JupyterLab v4.1.6
/home/david/micromamba/envs/jupyter-collaboration/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter/docprovider-extension v3.0.0-alpha.0 enabled OK

Disabled extensions:
    @jupyterlab/filebrowser-extension:defaultFileBrowser
    @jupyterlab/notebook-extension:cell-executor

After reinstalling it with jupyter labextension develop --overwrite projects/jupyter-collaboration-ui, now it works:

$ jupyter labextension list
JupyterLab v4.1.6
/home/david/micromamba/envs/jupyter-collaboration/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter/collaboration-extension v3.0.0-alpha.0 enabled OK
        @jupyter/docprovider-extension v3.0.0-alpha.0 enabled OK (python, jupyter-docprovider)

Disabled extensions:
    @jupyterlab/filebrowser-extension:defaultFileBrowser
    @jupyterlab/notebook-extension:cell-executor
brichet commented 5 months ago

@davidbrochart it should be fixed with https://github.com/jupyterlab/jupyter-collaboration/pull/285