Skip to content

Remotes ​

A notebook's worker — the Julia process that evaluates its cells — normally runs on your machine. It can just as easily run on another machine: a beefy workstation, a GPU box, a cloud VM. Reactivity, hot-reload, package management, figures, and streaming all stay transparent — only the compute moves.

There are two ways to use another machine:

  • Move the whole notebook — place its entire worker on a host with run_on. Every cell, main kernel included, runs there.

  • Send some cells — keep the main kernel local and route heavy cells to a named region, which can also keep workers warm for instant startup.

This page covers host setup, whole-notebook placement, and diagnostics. Per-cell regions — and warm workers — live in Regions.

Requirements ​

A remote is any SSH host you already reach with key auth: a Host entry in ~/.ssh/config, or a user@host you can ssh to without a password prompt. KaimonSlate provisions the rest: it checks the host, ensures a Julia + environment is present, and starts the worker for you.

The hub speaks SSH itself rather than running ssh. From your SSH config it takes HostName, Port, User, IdentityFile, ProxyJump, IdentitiesOnly and IdentityAgent; ProxyCommand is not supported. Keys held by your SSH agent are tried first, and an OpenSSH certificate (-cert.pub) beside a key is offered with it.

Remotes and regions need the hub running under Kaimon, or started with slate --ai. A standalone slate hub runs every notebook locally, and the run-location pill says so.

A host that refuses keys and wants a password plus a second factor — which is most production clusters — works too, by authenticating once through a dialog in the page; see Clusters.

Set up a host ​

On the hub's front page, click 🖧 Remotes. Its tabs are 🖧 Hosts (this page), ⎈ Machines (Clusters) and ⇄ Transfer (below). On Hosts, add and test a host. Each row in the known remotes carries ☆ Set default, which makes it the hub-wide default so a notebook with no session or notebook override opens there (Unset default puts it back to local), Regions › for its regions and live workers, and ✕ to hide it (Show hidden lists hidden ones).

  • Host — the SSH target (my-workstation, or user@host).

  • Transport — how the notebook talks to the worker:

    • SSH tunnel (default) — traffic is forwarded over the SSH connection. Works anywhere ssh works, opens no extra ports, needs no firewall changes. The safe default.

    • Direct · CURVE — encrypted ZeroMQ sockets straight to the host (CurveZMQ), lower overhead than an ssh forward. Needs the worker's ports reachable through any firewall — pin them under Ports (blank = auto, 9100+) and open them on the host.

    Either way, cache and boundary-value transfers ride a dedicated data channel (a CURVE socket on direct, its own ssh forward on tunnel) so a big shipment never queues ahead of cell results. Both transports use CURVE with an allow-list holding only this notebook's key. On tunnel that is not for the encryption, which SSH already provides: the port the forward terminates on is open to every other account on a shared host, and the allow-list is what turns them away.

  • 🩺 Test & prime — a full reported dry-run: SSH reachability, Julia presence (+ version), environment provisioning, gate load, a CURVE key (for direct), then a real spawn → connect → round-trip eval → clean teardown. It returns a step-by-step checklist and primes the host, so the first real notebook run is fast (cold provisioning happens here, once).

Run the preflight first

Always Test & prime a new host before running a notebook on it — it catches setup problems (missing Julia, closed ports, key auth) with a clear checklist instead of a stuck worker, and warms the host so the first real run doesn't pay provisioning time.

Run a notebook on a remote ​

Two ways to place a notebook's worker:

  • When you open it — the front page's Run on selector (next to Open / ⬆ Upload) picks local or a configured host before the notebook opens.

  • On a live notebook — the toolbar's Running on pill (💻 local ▾); its ▾ opens a picker with local, your known remotes, transport and pinned ports, 🩺 Test connection, and ⚙ Manage remote workers…. Apply it with Run here (this session), Save to notebook, or Clear. The same picker is reachable as change ▾ in the worker dock, and clicking the pill itself opens the dock. The worker moves and the notebook re-runs.

There is also a machine-wide default run location, set from the Remotes dialog and persisted to slate.json in your config home. It decides where a notebook with no override of its own runs; empty means locally.

Placement has a scope, so you control how sticky it is:

ScopeMeaning
sessionThis session only — not saved. The default.
notebookDurable — saved in the .jl so the notebook reopens on that host.
clearDrop the overrides and fall back to the global default / local.

Keeping workers warm ​

A whole-notebook run_on spawns a fresh worker on the host — a cold boot (provision + start Julia + load packages) that can be ~90 s the first time (a later reattach reuses a parked connection). To keep workers pre-booted and ready to adopt — startup in about a second instead of a cold boot — define a region with a warm count and route cells to it. A region with warm > 0 is a warm pool, and its preload replicates a project so the adopted worker already has its packages loaded. See Regions → Defining a region.

Your cache follows you ​

KaimonSlate's durable cache can move to the remote so it restores cached results there instead of recomputing them — "your session follows you."

  • On attach, cached results are carried over automatically when moving them beats recomputing — and never if a single entry would take longer than the carry-time budget to transfer (that cell just recomputes remotely instead).

  • sync_memo(notebook) pushes everything, all of the notebook's local cache blobs, to the remote, deduping against what it already has. It works over either transport (direct dials the CURVE data socket; tunnel uses a dedicated ssh forward, so a big shipment never queues ahead of cell results), and it also runs automatically in the boot window on every remote (re)attach.

Tune the transfer under 🖧 Remotes → ⇄ Transfer (applies to all notebooks):

SettingEffect
Transfer chunk sizeMB moved per round-trip. Transfers ride their own channel, so this never delays cell results — smaller chunks bound per-chunk timeouts and let an abort land sooner on a slow uplink; bigger ones move data faster on a good link.
Carry-time budgetOn attach, an entry is only carried if moving it is worth it and it fits in this budget; otherwise the cell recomputes. (sync_memo ignores this — it always pushes everything.)
Confirm transfers overWhen a cell needs a value that must cross the network, it pauses with an exact size + estimated-time preview if the transfer would take longer than this; run the cell again to proceed. 0 never asks.

Diagnostics ​

When a notebook runs remotely — or across regions — several surfaces show what's happening and where.

Where a notebook runs (agent tools; also usable from any REPL):

  • worker(notebook) — this notebook's live placement: local (pid/port) or remote host, the transport, ports (main / stream / data), connection state, and, for a remote, whether it adopted a warm worker — plus its latest telemetry. (action="status" is the default.)

  • worker(action="list", host=…) — a host's full roster: each worker's lifecycle badge (⚪ stopped · 🔵 warm·region · 🟡 idle · 🟢 attached/running), the notebook it serves, last-activity age, and telemetry (cpu %, RSS, cache size, running count) alongside host-wide cpu / load / memory.

  • regions() — the compute registry: every configured region (host, warm count, preload, data root, last reconcile) and parked wires. (See Regions.)

The Worker activity panel — on the hub's front page, a live "top" for every worker the hub knows about: this machine's workers under 💻 this machine, notebooks placed on a host grouped by host, and region workers grouped by region. Each row shows a CPU meter, RSS, and what it's doing (▶ running-cell ids · ⏳ warming · ✓ ready · idle). Clicking a row opens its telemetry view, with the worker's facts and its restart, open and reap actions above the charts. Rows update live, and appear whenever any notebook has a worker, local or not. A remote worker this hub started keeps streaming telemetry after its notebook detaches, and while it waits warm in a region pool: the hub holds a connection to it for that alone while it has a session to the host.

Inside the notebook:

  • The worker pill (top bar) — one pill, showing whichever worker most needs attention (disconnected, degraded, starting, running, idle). Hover it for a list of every worker; click it, or a row in that list, to open the worker dock along the bottom of the page: every worker, the selected one's controls, details and recent log messages, and its Log and Telemetry. See Workers & Telemetry.

  • 🪵 Worker log (☰ → Worker log, or the command palette) opens the worker dock at its Log tab: the worker's own log, paged and searchable however large it is.

  • The DAG pane's 🖧 region map and per-cell provenance chips show where each cell last ran and how much data crossed the boundary — see Regions → Seeing where cells run.

  • 📋 Activity log — a per-cell run feed (distinct from the worker pill and the front-page strip).

slate_diag is browser diagnostics, not worker state

Despite the name, slate_diag reports the browser tab's console (JS errors, failed asset loads) — useful for a broken widget or a 404, not for where a notebook runs. For execution and worker state use worker / regions and the worker dock's Log.

From the agent ​

Under Kaimon, the agent drives all of this through slate.* tools — each one's schema has the full parameters (slate_api("remote") lists them):

ToolDoes
slate_run_on(notebook, host, scope)Place a whole notebook's worker (local / SSH host; transport; scope).
slate_check_remote(host, transport)Preflight + prime a host (the Test & prime dry-run).
slate_worker(notebook)Where a notebook runs right now (action="status").
slate_worker(action="list", host)A host's live worker roster + telemetry.
slate_worker(action="restart", notebook)Fresh worker for a notebook, then re-run. Local or remote.
slate_worker(action="reap", host, port)Kill and remove one worker, leaving nothing behind.
slate_worker(action="log", region)A region's bring-up log from this hub: queued, node granted, provisioning, spawn and connect.
slate_worker(action="release", region)Return a scheduler region's allocation, or withdraw its queued request.
slate_worker(action="keep", region)Restart a scheduler region's idle clock, answering the idle-release warning.
slate_sync_memo(notebook)Push the notebook's cache entries to its remote worker.

Defining named regions and assigning them to a notebook has its own tools — slate_region, slate_region_on, slate_regions — see Regions → From the agent.

See also ​

  • Regions — run part of one notebook on a remote kernel while the rest stays local.

  • Memoization & Caching — the durable cache that sync_memo moves.

  • Running the Hub — hub port, kernel selection, environment variables.

  • Packages — a notebook's per-project environment (what preload replicates).