To initiate a Jupyter Lab session on the cluster, follow these steps:
Begin by logging into the cluster using the following command, replacing
ssh <cid>@vera1.c3se.chalmers.se
Copy the run_jupyter.sh script to your desired working directory using the cp command. Adjust
cp /cephyr/NOBACKUP/groups/bbt045_2024/Container/run_jupyter.sh ./<your_directory>
Open the run_jupyter.sh file and edit the lines:
ID=0 # Replace 0 with your ID number
TIME=00:20:00 # Adjust the time requirements as needed
Execute the edited script to allocate resources on the cluster.
./run_jupyter.sh
After a brief moment, you will be allocated resources. Take note of the assigned node and port from the displayed information.
Open a new Terminal on your local machine and use the following ssh command to connect to the Jupyter Lab session. Adjust ssh -N -L <port>:<node_name>:<port> <cid>@vera1.c3se.chalmers.se
.
In our example: ssh -N -L 2000:vera41-3:2000 <cid>@vera1.c3se.chalmers.se
.
Paste the provided link in your browser to access the Jupyter Lab session. Now you are ready to start working in Jupyter Lab on the cluster!