grid_core, browse notebooks, and develop Python code against the same filesystem that Jupyter exposes.
This page covers two scenarios:
- You are on a managed or remote machine and already connected via VS Code Remote-SSH.
- You are running GRID on your own workstation and have VS Code installed locally.
grid_core container is running (init … in the CLI) before attaching.
Prerequisites
- VS Code with the Remote Development extension pack (Remote-SSH and Dev Containers).
- GRID containers running on the target machine (
grid_core,grid_server, simulator). - Optional: an existing remote VS Code window (for managed or remote nodes) as described in the Managed GRID guide.
1. Connect to the Host (If Remote)
If you are working on a remote machine:- Use Remote-SSH to connect (see Managed GRID Enterprise).
- Wait for the remote VS Code window (green status bar).
2. Attach to the grid_core Container
- Ensure the containers are up (
init airgenorinit isaacfrom the CLI). - In VS Code, open the Command Palette (
F1/⌘⇧P/Ctrl+Shift+P). - Run Dev Containers: Attach to Running Container….
- Pick
grid_corefrom the list. - VS Code opens a new window attached to that container. The root folder defaults to
/workspace, which contains:sample_notebooks/— same content exposed via Jupyter- Any volumes you mounted (for example
/workspace/datasets) - Logs and artifacts generated by your sessions
The first attach installs the VS Code server inside the container, which takes a few seconds.
3. Explore the Workspace
- Use the Explorer to open notebooks (
*.ipynb) or Python scripts. - Launch terminals (
Terminal > New Terminal) to run Python, CLI tools, or Git commands directly inside the container environment. - VS Code inherits all dependencies baked into
grid_core, so packages, CUDA binaries, and environment variables match what your sessions use.
4. Develop and Iterate
- Edit notebooks or scripts in VS Code and run them using the built-in Jupyter support or the integrated terminal.
- Use the Python extension for linting, breakpoint debugging, and refactoring.
- Changes to mounted volumes (for example
/workspace/datasets) are reflected across containers, Jupyter, and your local machine transparently.
5. Detach Safely
When you finish:- Close the VS Code window attached to
grid_core. The container keeps running until you terminate it via the CLI. - If you are on a remote VM, you can keep the Remote-SSH window open for later or disconnect via the status bar menu.
With the container attachment workflow, VS Code becomes a first-class IDE for GRID—perfect for longer editing sessions, pair programming, or integrating Git workflows. Combine it with the Hello GRID Enterprise tutorial for a hands-on introduction, then keep iterating directly inside the container.