Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit cc567ed

Browse files
ciregomatifali
andauthored
fix(jupyterlab): fix path to jupyter-lab if already installed (#447)
Co-authored-by: M Atif Ali <[email protected]>
1 parent b58ad58 commit cc567ed

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jupyterlab/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A module that adds JupyterLab in your Coder template.
1717
module "jupyterlab" {
1818
count = data.coder_workspace.me.start_count
1919
source = "registry.coder.com/modules/jupyterlab/coder"
20-
version = "1.0.30"
20+
version = "1.0.31"
2121
agent_id = coder_agent.example.id
2222
}
2323
```

jupyterlab/run.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,22 @@ if ! command -v jupyter-lab > /dev/null 2>&1; then
3434
uv)
3535
uv pip install -q jupyterlab \
3636
&& printf "%s\n" "🥳 jupyterlab has been installed"
37-
JUPYTERPATH="$HOME/.venv/bin/"
37+
JUPYTER="$HOME/.venv/bin/jupyter-lab"
3838
;;
3939
pipx)
4040
pipx install jupyterlab \
4141
&& printf "%s\n" "🥳 jupyterlab has been installed"
42-
JUPYTERPATH="$HOME/.local/bin"
42+
JUPYTER="$HOME/.local/bin/jupyter-lab"
4343
;;
4444
esac
4545
else
4646
printf "%s\n\n" "🥳 jupyterlab is already installed"
47+
JUPYTER=$(command -v jupyter-lab)
4748
fi
4849

4950
printf "👷 Starting jupyterlab in background..."
5051
printf "check logs at ${LOG_PATH}"
51-
$JUPYTERPATH/jupyter-lab --no-browser \
52+
$JUPYTER --no-browser \
5253
"$BASE_URL_FLAG" \
5354
--ServerApp.ip='*' \
5455
--ServerApp.port="${PORT}" \

0 commit comments

Comments
 (0)