Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] jupyterlab doesn't work out of the box
@ 2022-02-01 12:53 tornaria
  2022-02-01 13:56 ` dkwo
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tornaria @ 2022-02-01 12:53 UTC (permalink / raw)
  To: ml

[-- 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
@ 2022-02-01 13:56 ` dkwo
  2022-02-01 14:03 ` dkwo
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dkwo @ 2022-02-01 13:56 UTC (permalink / raw)
  To: ml

[-- 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
  2022-02-01 13:56 ` dkwo
@ 2022-02-01 14:03 ` dkwo
  2022-02-01 14:43 ` tornaria
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dkwo @ 2022-02-01 14:03 UTC (permalink / raw)
  To: ml

[-- 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 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
  2022-02-01 13:56 ` dkwo
  2022-02-01 14:03 ` dkwo
@ 2022-02-01 14:43 ` tornaria
  2022-02-01 16:27 ` dkwo
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tornaria @ 2022-02-01 14:43 UTC (permalink / raw)
  To: ml

[-- 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
                   ` (2 preceding siblings ...)
  2022-02-01 14:43 ` tornaria
@ 2022-02-01 16:27 ` dkwo
  2022-02-01 16:54 ` ahesford
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dkwo @ 2022-02-01 16:27 UTC (permalink / raw)
  To: ml

[-- 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?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
                   ` (3 preceding siblings ...)
  2022-02-01 16:27 ` dkwo
@ 2022-02-01 16:54 ` ahesford
  2022-02-02 10:12 ` dkwo
  2022-02-02 20:25 ` [ISSUE] [CLOSED] " ahesford
  6 siblings, 0 replies; 8+ messages in thread
From: ahesford @ 2022-02-01 16:54 UTC (permalink / raw)
  To: ml

[-- 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.)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
                   ` (4 preceding siblings ...)
  2022-02-01 16:54 ` ahesford
@ 2022-02-02 10:12 ` dkwo
  2022-02-02 20:25 ` [ISSUE] [CLOSED] " ahesford
  6 siblings, 0 replies; 8+ messages in thread
From: dkwo @ 2022-02-02 10:12 UTC (permalink / raw)
  To: ml

[-- 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ISSUE] [CLOSED] jupyterlab doesn't work out of the box
  2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
                   ` (5 preceding siblings ...)
  2022-02-02 10:12 ` dkwo
@ 2022-02-02 20:25 ` ahesford
  6 siblings, 0 replies; 8+ messages in thread
From: ahesford @ 2022-02-02 20:25 UTC (permalink / raw)
  To: ml

[-- 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-02-02 20:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 12:53 [ISSUE] jupyterlab doesn't work out of the box tornaria
2022-02-01 13:56 ` dkwo
2022-02-01 14:03 ` dkwo
2022-02-01 14:43 ` tornaria
2022-02-01 16:27 ` dkwo
2022-02-01 16:54 ` ahesford
2022-02-02 10:12 ` dkwo
2022-02-02 20:25 ` [ISSUE] [CLOSED] " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).