When I do a --user installation of an extension e.g., pip install --user example.whl, the extension gets installed into .local/lib/pythonX.X/site-packages/example. And, the json file that activates the server part of the extension gets installed in .local/etc/jupyter/jupyter_server_config.d/example.json.
However, it appears that that isn’t one of the places where JupyterLab looks for the json file, as the server extension doesn’t show up when I execute jupyter lab extension list. When I copy jupyter_server_config.d into the .jupyter directory of my home directory, then JupyterLab is able to find the server extension.
Is it supposed to work that way?