Pure-stdlib worker · Any Python .venv · Self-building Cordis plugins

Interactive Python compute,
built for the AI era.

xing replaces fragile notebooks with strictly linear cell-level branching, Copy-on-Write sandbox probes, zero-restart Cordis plugins, and parallel AI experiment orchestration — running natively inside your existing Python and PyTorch virtualenv.

localhost:8765/?file=flow_matching_studio.loom.py#s_model
0 deps
Stdlib compute worker — attaches to any local .venv without installing kernels
~2 ms
AST-targeted CoW snapshot clones only referenced CUDA/CPU tensors & modules
0 restarts
Cordis plugin kernel hot-reloads routes, panels, and hooks with rollback
100% .py
Plain git-diffable .loom.py files plus instant .ipynb & Marimo import
WHY XING

Built for exploration, not fighting notebook state.

In an era where AI writes boilerplate in seconds, interactive compute environments exist for understanding, ablations, and tight scientific feedback loops.

01 · LINEAR BRANCHING

Fork any cell in place — never duplicate downstream cells.

Clicking Fork adds an inline variant tab (ReLU-64 vs SiLU-Fourier) inside that exact cell while keeping a calm top-down linear flow. Execution state and plots are cached by cumulative upstream branch path (v_0/v_1/…/v_i), so flipping tabs instantly flip-books downstream figures and opens inline metric comparisons.

  • Zero 2D graph clutter or duplicated notebooks
  • Inline Compare table & side-by-side figure thumbnails
  • One-click Keep collapses the winning variant cleanly
Inline cell-level variant comparison showing ReLU-64 vs SiLU-Fourier metrics and decision boundaries
02 · SANDBOX CELLS + CoW

Insert an isolated probe anywhere without breaking downstream.

Press s after any cell to attach a dashed Sandbox side-spur. It inherits all upstream memory via AST-targeted Copy-on-Write snapshotting (preserving nn.Module ↔ Optimizer parameter aliasing via a shared memo and restoring RNG/os.environ) and never feeds or invalidates downstream cells.

  • CUDA-safe: works natively on GPU PyTorch models (unlike os.fork())
  • Zero copy for unreferenced datasets; read-only views for huge arrays
  • One-click Promote merges a successful probe into the main spine
Isolated Sandbox side-spur cell perturbing cloned model weights while downstream Cell 3 remains pristine
03 · AI EXPERIMENT ORCHESTRATOR

Define a cell range, state constraints, and run N parallel ablations.

Highlight any contiguous range [start..end] and describe what can change and what must stay fixed. xing boots up to N isolated warm .venv workers with minimal AST-pruned prefixes, inspects live loss curves and rendered PNG figures across rounds, and lets you fork the winning ablation straight back into your notebook.

  • Live loss trajectories, comparison table, and collapsible experiment navigator
  • Persists every experiment, plot, and audit summary to disk automatically
  • One-click AI / Fix on any cell using 6-layer live runtime context
AI Experiment Orchestrator showing planner rounds, ablation comparison table, and rendered decision boundary plots
04 · CORDIS HMR + PERSISTENT AGENT

A studio that builds itself — without restarting your kernel.

Everything from Run Tracking and Error Jump to the right-edge Cell Navigator and Experiment Orchestrator is a revertible Cordis plugin (arXiv:2608.25512). Edit or create plugins live with automatic rollback, or press Ctrl+\ to open the always-running Copilot CLI agent terminal with full control via loom.agent_ctl.

  • 11 built-in hot-reloadable Cordis fibers — toggle or edit live
  • Persistent ACP agent with durable transcripts & live streaming
  • Automatic disk-persisted revision history with diffs and 1-click Undo
Cordis Plugin Studio with 11 active hot-reloadable fibers alongside the persistent Copilot CLI Agent terminal
05 · KEYBOARD-FIRST CRAFT

Out-of-the-box Vim + Jupyter bindings, Swiss Light & Matte Dark.

Navigate 20+ cell studies effortlessly with full jupyterlab-vim Command / Normal / Insert modes (j/k, a/b, dd/yy/p, u/z, f fork, s sandbox), a minimalist right-edge tick-rail scrubber, deep links to exact cells (?file=…#cell_id), and an instant Stop button on running cells.

xing studio rendered in Matte Neutral Dark mode
COMPARISON

How xing compares to Jupyter and Marimo.

Capability xing JupyterHub / Lab Marimo
Works with any Python .venv (zero kernel install) Yes · pure-stdlib worker Requires ipykernel Requires marimo in venv
Cell-level variant branching (without duplicating downstream) Yes · inline path-keyed tabs No No
Isolated Sandbox side-spur cells with CoW memory safety Yes · CUDA-safe AST CoW Shared mutable globals DAG forbids duplicate defs
Self-building plugins with zero-restart transactional HMR Yes · Cordis kernel Rebuild + restart server No live plugin HMR
Parallel N-worker AI Experiment Orchestrator + visual audit Built-in plugin External scripts External scripts
Persistent CLI Agent controlling cells, vars & plugins Built-in (Ctrl+\) Sidebar chat extensions Cell completion
Automatic disk-persisted revision history & diffs Yes · AI, Agent & user edits Single checkpoint file Relies on git
Git-diffable pure Python format + Vim/Jupyter shortcuts Yes · .loom.py + Vim default JSON .ipynb + extension Pure .py
QUICKSTART

Attach to any local Python virtualenv in seconds.

Run against any .venv
# Point xing at any workspace & existing PyTorch / scientific .venv
python -m loom \
  --root ./my-research \
  --venv ./my-research/.venv/bin/python \
  --port 8765

# Or open an existing .ipynb, Marimo .py, or .loom.py directly
python -m loom notebooks/ablation_study.ipynb
Clean, git-diffable .loom.py format
# loom:workspace version=3 name="Spiral Flow Studio"
import loom

# %% [variant cell="s_model" id="v_relu" name="ReLU-64"]
lr = loom.slider(0.03, 0.005, 0.08, label="LR")
model = nn.Sequential(nn.Linear(2, 64), nn.ReLU(), nn.Linear(64, 2))

# %% [variant cell="s_model" id="v_silu" name="SiLU-Fourier" active=true]
model = FourierMLP()  # Flip tabs without duplicating downstream cells

# %% [cell id="s_probe" title="Weight Probe" isolated=true]
# CoW sandbox: mutates cloned model, downstream stays pristine
React + CodeMirror 6
Linear flow · Vim/Jupyter · Tick rail · Drawers
WS / HTTP
FastAPI + Cordis Kernel
11 hot-reloadable plugins · Revision store · SQLite history
TCP JSONL
Stdlib Compute Worker
Any Python 3.10+ .venv · Path-keyed scopes · AST CoW