VS Code Remote Development
Your laptop edits the code. A GPU box somewhere else actually runs it.
Intermediate
scp/rsync-ing files over, or editing directly with
a terminal-only tool over SSH. VS Code's Remote-SSH extension instead runs a small
server-side agent on the remote host and gives you the full local-feeling editor
— IntelliSense, the debugger, extensions — operating on files and processes that live
entirely on that remote machine.
ssh — it reuses your existing SSH config and
keys automatically.
.devcontainer/devcontainer.json file (base
image, extensions, environment variables). Anyone who opens the folder gets an identical
environment, built by Docker — no more "works on my machine."
{
"name": "cuda-dev",
"image": "nvcr.io/nvidia/pytorch:24.05-py3",
"runArgs": ["--gpus", "all"],
"customizations": {
"vscode": { "extensions": ["ms-python.python", "ms-vscode.cpptools"] }
}
}
jupyter notebook or tensorboard --logdir runs/ running on the
GPU server shows up as a normal localhost URL in your local browser, no
manual SSH tunnel (ssh -L ...) required.