How to disable jupyter_collaboration extension

Hi Jovyans :smiley:,


It seems like there is a way to config jupyter_collaboration in, but it doesn’t really work for me:

## To enable real-time collaboration, you must install the extension `jupyter_collaboration`.
#          You can install it using pip for example:
#              python -m pip install jupyter_collaboration
#          This flag is now deprecated and will be removed in JupyterLab v5.
#  Default: False
# c.LabApp.collaborative = False

The genrated config says this is deprecated and will be removed, then what is the right way to disable this extension?


jupyterlab Version 4.0.5
jupyter_collaboration Version 1.1.0
command to start server: jupyter lab # collaboration extension enabled by default without the --collaborative flag

Different Experiments

c.LabApp.collaborative = False # doesn't work
c.ServerApp.jpserver_extension = {"jupyter_collaboration": False} 
# disabled the extension loading from the server log, but RTC still enabled when I open jupyter lab

Found this in here

c.Collaboration.disable_rtc = True # doesn't work

Expected Behavior

I want to be able to install this extension and also enable/disable this extension.

I think that the intent was to simplify setup for JupyterLab 4.0 so RTC is either installed and automatically enabled or uninstalled.

If you really need to have it installed but disabled you could keep doing (2) and on top of that disable the frontend extension:

jupyter labextension disable @jupyter/collaboration-extension
1 Like

Thanks for answering!
I guess there is definitely a reason why you changed it that way, but please consider a case that I’m going to deploy a jupyterhub which serves multiple groups of users using jupyterlab and I wish to have an easy config for me as an ServerAdmin to enable/disable the RTC extension in different jupyterhub profiles, of course at the meantime, also allowing the users to enable/disable the extension as you mentioned above.
So I’d suggest add an ExtensionApp setting performs just like the deprecated LabApp.collaborative, and set it default as True.

Thanks for explaining the rationale. Would you mind opening an issue in GitHub - jupyterlab/jupyter-collaboration: A Jupyter Server Extension Providing Support for Y Documents highlighting your suggestion to maintainers of the collaborate extension?

1 Like

Thanks! I’ve made this issue

1 Like

Thanks for answering @krassowski!

As Michał explained above, we removed the flag to simplify the setup and remove RTC-related code from JupyterLab. Nevertheless, we realized there are some people who need this flag to easily enable/disable RTC when spawning a server from JupyterHub, so we decided to add it back. The new flag has a different name to distinguish it from the previous one because the default behavior changed.

You can disable RTC with the following flag: --YDocExtension.disable_rtc=True


Thansk @hbcarlos !! This is exactly what I want, I’m able to disable the RTC by jupyter lab --YDocExtension.disable_rtc=True.

P.S. For future Jovyans, this only disables YDocExtension’s RTC feature, you can still see multiple online collaborator, which is fine for my case.

A follow-up question, is it possible to config this through or instead of a flag?

Per the documentation:


is the same as…

# jupyter_server_config.json
{"YDocExtension": {"disable_rtc": true}}

or …

c.YDocExtension.disable_rtc = True

Uh, thanks! It makes sense now, I was trying this in the