Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the dashboard work with jupyterlab collaborative flag #101

Open
yuhuishi-convect opened this issue Mar 24, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@yuhuishi-convect
Copy link

Describe the bug

When deployed with jupyterhub, if I put the following line in jupyterhub config to enable the latest collaboration feature of jupyterlab

c.KubeSpawner.args = ['--collaborative']

This will append additional arg when starting the single user server.

However, CDSdashbaord will also pick up the additional arg.
When the default_presentation_cmd is set as

c.VariableMixin.default_presentation_cmd = ['python3', '-m', 'jhsingle_native_proxy.main']

The command will become

python3 -m jhsingle_native_proxy.main xxxx.py --collabrative

However, since --collabrative is not compatible with the presentation command, the single user server will fail to start

To Reproduce

In jupyterhub_config.py put

c.KubeSpawner.args = ['--collaborative']
c.VariableMixin.default_presentation_cmd = ['python3', '-m', 'jhsingle_native_proxy.main']

Then start a dashboard

Screenshots

Configuration

Zero to JupyterHub on AWS EKS

@yuhuishi-convect yuhuishi-convect added the bug Something isn't working label Mar 24, 2022
@xeliba
Copy link

xeliba commented Apr 5, 2022

There is another way to turn on "collaborative" mode. In the docker image for your user servers you need to create a file /etc/jupyter/jupyter_server_config_extra.py. Add the line:
c.LabApp.collaborative = True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants