TLJH python environments don't appear on the user interface

Hi,

I’m running a TLJH on a remote server.
Everything works quite fine except that the environments I created don’t show up in the browser.
I used the following command to create the environment:

sudo -E conda create -n flo -c conda-forge python=3.6 ipykernel

When I check the environments sudo -E conda env list, the new environment is in the list.
However, there is no option to start a notebook with the new kernel.
(I restarted the hub, and I also restarted the machine… nothing worked)

What can I do to find the solution?

Infos:
Ubuntu 18.04.5 LTS
JupyterHub version 1.5.0
Python 3.9.7

tljh-config:

users:
  admin:
  - xxx
https:
  enabled: true
  tls:
    key: xxx
    cert: xxx
user_environment:
  default_app: jupyterlab
services:
  cull:
    timeout: 259200
    max_age: 0

Jupyter doesn’t list kernels from other envs by default. You can either register them explicitly:

/path/to/env/bin/python -m ipykernel install --prefix /path/to/user/env

or you can install a package like nb_conda_kernels into the user env, which attempts to discover kernels in envs automatically.

2 Likes

Thanks a lot @minrk . I installed the nb_conda_kernels into the base environment and restarted the server.
Now every environment is finally displayed!