From 2b40b57950608022ad4f074c851bb6fd2ed84c74 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 26 Sep 2023 06:18:35 +0300 Subject: [PATCH] fix jupyterlab --- jupyterlab/run.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jupyterlab/run.sh b/jupyterlab/run.sh index 7121da3..50fe363 100755 --- a/jupyterlab/run.sh +++ b/jupyterlab/run.sh @@ -3,16 +3,17 @@ echo "Installing jupyterlab..." # check if jupyterlab is installed -if ! command -v jupyterlab &> /dev/null then - # install jupyterlab +if ! command -v jupyterlab & >/dev/null; then + # install jupyterlab # check if python3 pip is installed - if ! command -v pip3 &> /dev/null then + if ! command -v pip3 & >/dev/null; then echo "pip3 is not installed" echo "Please install pip3 and try again" exit 1 + else + pip3 install jupyterlab + echo "jupyterlab installed!" fi - pip3 install jupyterlab - echo "jupyterlab installed!" else echo "jupyterlab is already installed." fi