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

Is it possible to use sudospawner with wrapspawner? #46

Open
jjwright opened this issue Oct 23, 2017 · 1 comment
Open

Is it possible to use sudospawner with wrapspawner? #46

jjwright opened this issue Oct 23, 2017 · 1 comment

Comments

@jjwright
Copy link

We've got a hub running with wrapspawner so that users can dynamically choose different spawner class options. I'm currently working on setting it up so it can be run as a non-root user but I'm stuck on how sudospawner could be used with wrapspawner since they both require setting the spawner_class in the configuration file. Has anyone had success setting up a hub this way?

@minrk
Copy link
Member

minrk commented Jun 25, 2018

With wrapspawner, you always set spawner_class to wrapspawner. After that, it's wrap spawner configuration that figures out what 'actual' spawner to launch, e.g.

from wrapspawner import WrapSpawner
from sudospawner import SudoSpawner
c.JupyterHub.spawner_class = WrapSpawner
c.WrapSpawner.child_class = SudoSpawner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants