This is a case with jupyter lab 4.10, python 3.11
Using WSL.
My user (from terminal) is
❯ id
uid=1000(guillaume) gid=1000(guillaume) groups=1000(guillaume),4(adm),27(sudo),999(docker)
However from jupyter lab,
It is like my main group (gid 1000) has been lost. This has some impact on some folder access (Permission denied)
The exact same notebook executed from vscode with a python kernel is rendered correctly.
Is there a thing I am missing somewhere?
I have just tested with jupyterlab v3.6.6
and it is just fined.
I guess I should bisect to detect when this has been created.
by bisecting I realized my issue has been created by the way I start jupyter lab.
I used to start it with systemctl.
Here was my service file
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
Environment="LD_LIBRARY_PATH=/usr/lib/wsl/lib"
ExecStart=/home/guillaume/bin/jupyterlab
User=guillaume
Group=adm
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
and just updating Group from adm to guillaume fixed it for me.
Maybe it will help someone later?