From 0c27aa3391e09b4bf33d2d7cbccd91f01ebdd15b Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Sat, 16 Dec 2023 17:26:17 +0300 Subject: [PATCH] Discard changes to jupyterlab/run.sh --- jupyterlab/run.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jupyterlab/run.sh b/jupyterlab/run.sh index b040cec..8f77cac 100755 --- a/jupyterlab/run.sh +++ b/jupyterlab/run.sh @@ -5,21 +5,21 @@ BOLD='\033[0;1m' printf "$${BOLD}Installing jupyterlab!\n" # check if jupyterlab is installed -if ! command -v jupyterlab > /dev/null 2>&1; then - # install jupyterlab - # check if python3 pip is installed - if ! command -v pip3 > /dev/null 2>&1; then - echo "pip3 is not installed" - echo "Please install pip3 in your Dockerfile/VM image before running this script" - exit 1 - fi - # install jupyterlab - pip3 install --upgrade --no-cache-dir --no-warn-script-location jupyterlab - echo "🥳 jupyterlab has been installed\n\n" +if ! command -v jupyterlab >/dev/null 2>&1; then + # install jupyterlab + # check if python3 pip is installed + if ! command -v pip3 >/dev/null 2>&1; then + echo "pip3 is not installed" + echo "Please install pip3 in your Dockerfile/VM image before running this script" + exit 1 + fi + # install jupyterlab + pip3 install --upgrade --no-cache-dir --no-warn-script-location jupyterlab + echo "🥳 jupyterlab has been installed\n\n" else - echo "🥳 jupyterlab is already installed\n\n" + echo "🥳 jupyterlab is already installed\n\n" fi echo "👷 Starting jupyterlab in background..." echo "check logs at ${LOG_PATH}" -$HOME/.local/bin/jupyter lab --ServerApp.ip='0.0.0.0' --ServerApp.port=${PORT} --no-browser --ServerApp.token='' --ServerApp.password='' > ${LOG_PATH} 2>&1 & +$HOME/.local/bin/jupyter lab --ServerApp.ip='0.0.0.0' --ServerApp.port=${PORT} --no-browser --ServerApp.token='' --ServerApp.password='' >${LOG_PATH} 2>&1 &