File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
+ if [ -n " $BASE_URL " ]
4
+ then
5
+ BASE_URL=" ServerApp.base_url=${BASE_URL} "
6
+ fi
7
+
3
8
BOLD=' \033[0;1m'
4
9
5
10
printf " $$ {BOLD}Installing jupyterlab!\n"
@@ -15,11 +20,17 @@ if ! command -v jupyterlab > /dev/null 2>&1; then
15
20
fi
16
21
# install jupyterlab
17
22
pipx install -q jupyterlab
18
- echo " 🥳 jupyterlab has been installed\n\n "
23
+ printf " %s\n\n " " 🥳 jupyterlab has been installed"
19
24
else
20
- echo " 🥳 jupyterlab is already installed\n\n "
25
+ printf " %s\n\n " " 🥳 jupyterlab is already installed"
21
26
fi
22
27
23
28
echo " 👷 Starting jupyterlab in background..."
24
29
echo " check logs at ${LOG_PATH} "
25
- $HOME /.local/bin/jupyter-lab --ServerApp.ip=' 0.0.0.0' --ServerApp.port=${PORT} --no-browser --ServerApp.token=' ' --ServerApp.password=' ' > ${LOG_PATH} 2>&1 &
30
+ $HOME /.local/bin/jupyter-lab --no-browser \
31
+ --ServerApp.base_url=" ${BASE_URL} " \
32
+ --ServerApp.ip=' *' \
33
+ --ServerApp.port=" ${PORT} " \
34
+ --ServerApp.token=' ' \
35
+ --ServerApp.password=' ' \
36
+ > " ${LOG_PATH} " 2>&1 &
You can’t perform that action at this time.
0 commit comments