Workspaces
View MarkdownA Workspace is a development machine with a persistent home directory. It stops when idle, and its home is saved when it stops.
lab = nodus.Workspace.create("lab", gpu="H100:2", image="nodus/workspace-pytorch-cuda", idle_timeout="2h")lab.wait_ready()url = lab.open("vscode") # or "jupyter"; opens the browser and returns the URLlab.ssh() # an SSH session through the nodus CLIlab.schedule(ready_by="2026-10-01T08:45:00-07:00", stop_at="2026-10-01T19:00:00-07:00")lab.stop()for s in lab.sessions(): # one entry per running period, with what it cost print(s.billed_seconds, s.charge_usd, s.stop_reason)- The home Volume is
volume=or<name>-home, created if it does not exist.ephemeral=Trueskips it: files are lost on stop. lab.start()wakes it after an idle or schedule stop; an SSH connection also wakes it.lab.exec(...)andlab.fileswork as on Sandboxes.