Skip to content

Commit

Permalink
update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali committed Sep 26, 2023
1 parent 368a3a0 commit 4c3194b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions jupyterlab/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env sh

echo "Installing jupyterlab..."
BOLD='\033[0;1m'

echo "$${BOLD}Installing jupyterlab!\n"

# check if jupyterlab is installed
if ! command -v jupyterlab & >/dev/null; then
Expand All @@ -13,15 +15,11 @@ if ! command -v jupyterlab & >/dev/null; then
fi
# install jupyterlab
pip3 install --user -q -y jupyterlab
echo "jupyterlab installed."
echo "🥳 jupyterlab has been installed\n\n"
else
echo "jupyterlab is already installed."
echo "🥳 jupyterlab is already installed\n\n"
fi

echo "Starting jupyterlab..."

$HOME/.local/bin/jupyter lab --no-browser --LabApp.token='' --LabApp.password='' >${LOG_PATH} 2>&1 &

echo "jupyterlab Started!"

echo "👷 Starting jupyterlab in background..."
echo "check logs at ${LOG_PATH}"
$HOME/.local/bin/jupyter lab --no-browser --LabApp.token='' --LabApp.password='' >${LOG_PATH} 2>&1 &

0 comments on commit 4c3194b

Please sign in to comment.