This repository was archived by the owner on May 15, 2025. It is now read-only.
Commit 2c8bf9f
authored
Get full path to jupyter-lab if already installed
If the `jupyter-lab` binary already exists in $PATH, as found
by `command -v jupyter-lab`, then we skip installing using
`pipx` or `uv`.
By skipping the install path, we leave `${JUPYTERPATH}` unset, which then leads to a broken module unless `jupyter-lab` just so
happens to be installed at `/jupyter-lab`.
Fix this by calculating the full path to the binary, either from the
install locations of `pipx`, `uv` or, in the case that it was
preinstalled, from the preinstalled location.1 parent b58ad58 commit 2c8bf9f
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments