This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ printf "$${BOLD}Installing jupyter-notebook!\n"
7
7
# check if jupyter-notebook is installed
8
8
if ! command -v jupyter-notebook > /dev/null 2>&1 ; then
9
9
# install jupyter-notebook
10
- # check if python3 pip is installed
11
- if ! command -v pip3 > /dev/null 2>&1 ; then
12
- echo " pip3 is not installed"
13
- echo " Please install pip3 in your Dockerfile/VM image before running this script "
10
+ # check if pipx is installed
11
+ if ! command -v pipx > /dev/null 2>&1 ; then
12
+ echo " pipx is not installed"
13
+ echo " Please install pipx in your Dockerfile/VM image before using this module "
14
14
exit 1
15
15
fi
16
- # install jupyter- notebook
17
- pip3 install --upgrade --no-cache-dir --no-warn-script-location jupyter
16
+ # install jupyter notebook
17
+ pipx install -q notebook
18
18
echo " 🥳 jupyter-notebook has been installed\n\n"
19
19
else
20
20
echo " 🥳 jupyter-notebook is already installed\n\n"
21
21
fi
22
22
23
23
echo " 👷 Starting jupyter-notebook in background..."
24
24
echo " check logs at ${LOG_PATH} "
25
- $HOME /.local/bin/jupyter notebook --NotebookApp.ip=' 0.0.0.0' --ServerApp.port=${PORT} --no-browser --ServerApp.token=' ' --ServerApp.password=' ' > ${LOG_PATH} 2>&1 &
25
+ $HOME /.local/bin/jupyter- notebook --NotebookApp.ip=' 0.0.0.0' --ServerApp.port=${PORT} --no-browser --ServerApp.token=' ' --ServerApp.password=' ' > ${LOG_PATH} 2>&1 &
Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ printf "$${BOLD}Installing jupyterlab!\n"
7
7
# check if jupyterlab is installed
8
8
if ! command -v jupyterlab > /dev/null 2>&1 ; then
9
9
# install jupyterlab
10
- # check if python3 pip is installed
11
- if ! command -v pip3 > /dev/null 2>&1 ; then
12
- echo " pip3 is not installed"
13
- echo " Please install pip3 in your Dockerfile/VM image before running this script"
10
+ # check if pipx is installed
11
+ if ! command -v pipx > /dev/null 2>&1 ; then
12
+ echo " pipx is not installed"
13
+ echo " Please install pipx in your Dockerfile/VM image before running this script"
14
14
exit 1
15
15
fi
16
16
# install jupyterlab
17
- pip3 install --upgrade --no-cache-dir --no-warn-script-location jupyterlab
17
+ pipx install -q jupyterlab
18
18
echo " 🥳 jupyterlab has been installed\n\n"
19
19
else
20
20
echo " 🥳 jupyterlab is already installed\n\n"
21
21
fi
22
22
23
23
echo " 👷 Starting jupyterlab in background..."
24
24
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 &
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 &
You can’t perform that action at this time.
0 commit comments