Skip to content

Commit

Permalink
Update SetupPrivateJupyterLab.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Nov 10, 2023
1 parent a356601 commit d696945
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions SetupPrivateJupyterLab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
# jupyter-nbextension install rise --py --sys-prefix
# jupyter-nbextension enable rise --py --sys-prefix

if [ "$1" != "" ]; then
echo "Git Repo $1 requested..."
cd /workspace/
git clone $1
fi

export SHELL=/bin/bash

echo "------ setting up user"
Expand Down Expand Up @@ -37,12 +31,13 @@ if [ "$OWNER" != "" ] && [ "$CONNECT_GROUP" != "" ]; then

# python3.8 -m pip --no-cache-dir install root-pandas

# unset JUPYTER_PATH
unset JUPYTER_PATH
which jupyter
unset JUPYTER_CONFIG_DIR
ls /root/.jupyter/jupyter_notebook_config.py
cd /home/$OWNER

# Invoke Jupyter lab as the user
su $OWNER -c "jupyter lab --ServerApp.root_dir=/home/${OWNER} --no-browser --config=/root/.jupyter/jupyter_notebook_config.py"
su $OWNER -c "jupyter lab --ServerApp.root_dir=/home/${OWNER} --ServerApp.port=9999 --ServerApp.ip='0.0.0.0' --no-browser --config=/root/.jupyter/jupyter_notebook_config.py"

fi

0 comments on commit d696945

Please sign in to comment.