Unable to set default app for user environment in TLJH

Hello.
I’ve run into issue where I’m unable to set user environments default app to jupyterlab.
My current approach was to add it to config with commands shown in documentation as:

sudo tljh-config set user_environment.default_app jupyterlab

Also i tried to do it manually on /opt/tljh/config/config.yaml, but no luck - I did tljh-config reload, and even server machine restart, but still get /tree as startup page, of course I’m able to swap url manually to /lab, but that is not expected workflow for other users on my server.

My current configuration (obfuscated):

users:
  admin:
  - xxx-admin
  - name.surname@domain.com
https:
  enabled: true
  letsencrypt:
    email: email@email.com
    domains:
    - xxx.domain.com
services:
  cull:
    every: 3600
    timeout: 3600
    max_age: 0
    users: false
    enabled: false
user_environment:
  default_app: jupyterlab

Any leads where i should look further?
Thanks a lot for help, hope to see some answers.

Regards,
ReWin

I’m facing the same issue. Did you find the problem?

Tljh config like this is translated to jupyterhub native config. In practice to do something in the user environment, you’d configure jupyterhubs spawner, which is systemdspawner in tljh distributions. You could configure this directly and not rely on tljh’s high level config which isnt well maintained. I think it should be the spawner’s default_url config that is set to /lab or similar to get jupyterlab by default.

Is this tljh config example from offiicial tljh documentation?

I just tested this out with a brand new install:

  1. The default seems to be jupyterlab, which works fine
  2. If I set it to ‘classic’ with sudo tljh-config set user_environment.default_app classic and sudo tljh-config reload hub, logging in shows me notebook 7

What is the behavior you are seeing?

I also opened Link what 'jupyterlab' and 'classic' link to by yuvipanda · Pull Request #1016 · jupyterhub/the-littlest-jupyterhub · GitHub to clarrify what interfaces classic or jupyterlab will provide.

I would personally appreciate softer language being used here. Thanks.