Commit 8832b9f2 authored by Sebastian Wahl's avatar Sebastian Wahl

added comment for mistral, added missing '"'

added defaults to update function
parent bb6130a1
......@@ -74,7 +74,7 @@ if [[ $# -lt 2 ]]; then
echo " $0 user@host.example.com start [lookup]"
echo " to start an existing jupyterlab environment on <user@host.example.com> and connect afterwards"
echo " if jupyterlab is already running on <user@host.example.com> you will be connected with the existing instance."
echo " the optional argument lookup sets the IP of the jupyterlab server differently.
echo " the optional argument lookup sets the IP of the jupyterlab server differently."
echo
echo " $0 user@host.example.com stop "
echo " to stop jupyterlab running on <user@host.example.com>"
......@@ -115,7 +115,8 @@ if [[ "$task" == "start" ]]; then
echo " No Jupyterlab server running on $hname. Will start a server and connect to it "
# TODO: avoid hitting Ctrl+C --> how to I start this in the backgroud adding & does not work
echo " Wait until you see the URL of the server and then hit Ctrl+C to continue"
ssh $hname "\${HOME}/miniconda3/bin/python \${HOME}/miniconda3/bin/jupyter lab --no-browser --ip $ip"
echo " If Chromium shows an empty welcome page, copy the Jupyterlab URL manually to the Chroumium URL field."
ssh $hname "\${HOME}/miniconda3/bin/python \${HOME}/miniconda3/bin/jupyter lab --no-browser --ip $ip"
echo " Jupyterlab on $hname started"
else
echo " Jupyterlab on $hname, port $port already running. Connecting to existing server."
......@@ -143,6 +144,6 @@ elif [[ "$task" == "update" ]]; then
echo "Updating all packages on $hname using the conda-forge channel."
ssh $hname bash <<EOF
source \${HOME}/miniconda3/bin/activate py3_std || echo "No conda installation found in \${HOME}/miniconda3/"
conda update -c conda-forge -n py3_std --all --yes
conda update -c default -c conda-forge -n py3_std --all --yes
EOF
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment