How to pass options to JupyterLab from JupyterHub

I’m trying to disable the default “Python (ipykernel)” kernel in my JupyterHub deployment; per this discussion on StackOverflow this can be done by setting c.KernelSpecManager.ensure_native_kernel = False or launching the Lab with jupyter lab --KernelSpecManager.ensure_native_kernel=False. How is this done when JupyterLab is being launched via JupyterHub, please?

There are two options:

1 Like

Ah, I see—I’d seen the former link but hadn’t realised that command-line flags to jupyterhub-singleuser would be passed through to jupyter lab. Thanks!

2 Likes