Guides
Jupyter
A notebook on the GPU, opened in the browser on your laptop.
Install and start JupyterLab
On a machine with the pytorch image:
pip install jupyterlab
jupyter lab --allow-root --no-browser --ip 127.0.0.1 --port 8888It prints a URL with a token=. Keep it.
Tunnel and open
ssh -p 40122 -N -L 8888:localhost:8888 [email protected]Open the printed URL on your computer; it starts with http://127.0.0.1:8888/lab?token=.
From VS Code instead
Connect with Remote - SSH (see Connecting), install the Jupyter extension on the remote side, and open any .ipynb. The kernel runs on the GPU machine.
Check the notebook sees the GPU
import torch
torch.cuda.is_available(), torch.cuda.device_count(), torch.cuda.get_device_name(0)