[-- Attachment #1: Type: text/plain, Size: 949 bytes --] New issue by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/35341 Description: ### Steps to reproduce the behavior 1. install package `jupyterlab` 2. run `jupyter-lab` in a terminal (as a regular user fwiw) 3. an error pops up both in the terminal and in a browser: ``` [E 2022-02-01 09:38:05.353 LabApp] JupyterLab application assets not found in "/usr/share/jupyter/lab" [E 2022-02-01 09:38:05.353 LabApp] Please run `jupyter lab build` or use a different app directory ``` I was able to workaround by creating my own app directory as follows: ``` $ mkdir ~/lab $ jupyter lab build --app-dir=~/lab ``` and then run jupyter lab as ``` $ jupyter lab --app-dir=~/lab ``` Beware: this will take some time and bring up (download I guess?) ~400M of nodejs stuff. I'm not sure one would want to ship that inside the xbps, maybe give some warning or instructions to the user? Cc: @dkwo
[-- Attachment #1: Type: text/plain, Size: 218 bytes --] New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/issues/35341#issuecomment-1026870151 Comment: Indeed, with a local `app-dir`, it seems to work fine, after first (re)build.
[-- Attachment #1: Type: text/plain, Size: 225 bytes --] New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/issues/35341#issuecomment-1026876483 Comment: If this approach seems reasonable, shall we print a message to the user? @ahesford
[-- Attachment #1: Type: text/plain, Size: 481 bytes --] New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/35341#issuecomment-1026917402 Comment: > Indeed, with a local `app-dir`, it seems to work fine, after first (re)build. If the system-wide app-dir will never work (except for root) maybe it's possible to configure it to use a default user appdir, do they have a standard location for that? In such a way that it's enough to run `jupyter lab build` as the error suggests.
[-- Attachment #1: Type: text/plain, Size: 478 bytes --] New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/issues/35341#issuecomment-1027031686 Comment: From the docs: The application directory can be overridden using the `--app-dir` command-line option in any of the JupyterLab commands, or by setting the `JUPYTERLAB_DIR` environment variable. Arch wiki suggests to use `export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab` What is the correct way to encode this into the package?
[-- Attachment #1: Type: text/plain, Size: 389 bytes --] New comment by ahesford on void-packages repository https://github.com/void-linux/void-packages/issues/35341#issuecomment-1027058824 Comment: The best way to make this a default is probably to add shell snippets to `/etc/profile.d`, which should be picked up by most users. (And those that don't will have overridden default behavior and should know enough to configure what they need.)
[-- Attachment #1: Type: text/plain, Size: 188 bytes --] New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/issues/35341#issuecomment-1027779168 Comment: I tried to do as suggested, please take a look.
[-- Attachment #1: Type: text/plain, Size: 952 bytes --] Closed issue by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/35341 Description: ### Steps to reproduce the behavior 1. install package `jupyterlab` 2. run `jupyter-lab` in a terminal (as a regular user fwiw) 3. an error pops up both in the terminal and in a browser: ``` [E 2022-02-01 09:38:05.353 LabApp] JupyterLab application assets not found in "/usr/share/jupyter/lab" [E 2022-02-01 09:38:05.353 LabApp] Please run `jupyter lab build` or use a different app directory ``` I was able to workaround by creating my own app directory as follows: ``` $ mkdir ~/lab $ jupyter lab build --app-dir=~/lab ``` and then run jupyter lab as ``` $ jupyter lab --app-dir=~/lab ``` Beware: this will take some time and bring up (download I guess?) ~400M of nodejs stuff. I'm not sure one would want to ship that inside the xbps, maybe give some warning or instructions to the user? Cc: @dkwo