Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 09:06
· 215 commits to main since this release

KaimonSlate v2.0.0

Diff since v1.12.1

This is 2.0 for the size of the release. There are no breaking changes to the Julia API. Code written for 1.x keeps working, and notebooks are
upgraded automatically: one made with 1.x opens as before and is written in the new notebook format
when it is next saved. Once saved by 2.0, a notebook does not open correctly in 1.x (see Changed).

Added

  • Job cells and sweeps. A new cell kind, #%% job, runs its body over a parameter grid
    (@sweep) on this machine, on a host Slate drives over SSH, or through SLURM or PBS. Its card
    shows the units as a live grid, charts the results as they land, and reads every chunk's log by
    byte range with whole-file search. The hub keeps submitting until the sweep finishes, retries
    failed units, and holds a sweep whose environment has not been tested on the machine until a short
    test job has passed. Results come back as one dataset, r.dataset, readable lazily and by part,
    and as a table (DataFrame(r.dataset)) through the new Tables extension. A job cell with
    region= runs its units on the node the region holds. Running sweeps are listed in the top bar.
    See Clusters.

  • Machines. A cluster is described once, on the front page under 🖧 Remotes → ⎈ Machines:
    its login host, scheduler (SLURM or PBS, detected from the host), store, queue, scheduler options,
    and who may read its store. Every machine with a host is also a region of the same name, and a
    region can vary its machine's shape. A machine's Scheduler use shows the commands the hub
    sends its scheduler against a budget (KAIMONSLATE_SCHED_BUDGET), with a dashboard by command
    and caller.

  • Regions on scheduler nodes. A region can get its worker on a node the scheduler grants, asked
    for only when a cell needs it. A cell waiting for its node shows as BLOCKED with what it waits
    for and for how long. An idle node is given back after a set time, with a warning first, and an
    allocation can be extended before its walltime runs out.

  • Prepare. Preparing a machine or a region installs Julia and the worker on the host, reads the
    site, settles the depot and, for a region, builds and loads the notebook's packages on a node
    (and its sysimage, if it uses one). Each step reports as it runs, in a dialog with the activity
    log and every earlier run. A notebook that needs a prepare says why, and which packages changed.

  • SSH without ssh. The hub speaks SSH itself, over one connection per host: keys from the
    agent or files, OpenSSH certificates, and password, one-time-code and keyboard-interactive
    sign-in from the browser, so hosts behind MFA work. A sweep waits for sign-in rather than fail.
    Transfers send only changed files, compress, and read large files over several streams, through a
    data transfer host when the machine names one.

  • Datasets. adopt(path) makes an HDF5 or NetCDF file on a region readable from any notebook,
    by part, without copying it whole. Remote results are cached locally by byte range, so a read
    that stops keeps what arrived.

  • Cell debugger. Any code cell can be stepped line by line, on this machine or a region's
    worker, with breakpoints and conditions, watches sampled over a run, live views, and a scratchpad
    in the paused frame. See Debugging a Cell.

  • Cell profiler. Any code cell can be profiled where it runs: CPU, wall time, allocations or
    GPU (CUPTI kernels and copies), as a flame graph keyed by source line, a timeline, and per-function
    and per-line tables, with library code folded onto your lines. A run is compared with the
    previous one, and a static check (JET) explains dispatch and boxed captures on the lines they
    affect. See Profiling a Cell.

  • Specialists. The agent can bring in a debugging or profiling specialist that works in the
    debugger or profiler beside you, asks you questions in the page, and records what it found.
    More roles can be defined in specialists.toml.

  • The worker dock. The worker pill opens a dock along the bottom of the page with every worker
    of the notebook, its controls (restart, shut down, release a node, start a region), its details,
    its recent log messages, a paged and searchable log, and its telemetry: CPU, memory, GPUs, garbage
    collection and every cell run on a timeline. Telemetry is also kept on disk for 14 days. See
    Workers & Telemetry.

  • The agent panel. Drag its edge to resize it, open it full screen, and step through what you
    sent before with ↑ and ↓. Repeated identical tool calls fold into one line with a count. Agents
    that speak ACP (opencode, Codex, Gemini CLI) can be picked as the model. (#80, Guido Wolf
    Reichert)

  • Profile and Debug the selected cell from the command palette.

  • Presentation mode is a designed deck. A slide is a fixed-aspect canvas that scales to the window;
    cell tags set its layout (title, section, center, cover), background (presets, colour,
    gradient, image or video), transition (fade, slide, zoom, rise) and timing (auto=).

  • Builds: ::: step blocks with entrance and emphasis effects, ::: incremental lists, . . .
    pauses and step-tagged cells, all on one step counter per slide. SlideSteps(n) binds that counter
    to a value, so a figure is recomputed at each step.

  • ::: columns, video and audio from image syntax (![autoplay loop](clip.mp4)), relative media paths
    resolved beside the notebook, and byte-range requests on notebook assets.

  • Morphs: a heading, image or named math term present on consecutive slides moves into its new place;
    chart cells sharing a morph= tag animate one figure into the other.

  • Presentation math: \term, \stepat, \hlat, \braceat, \cancelat, \focusat and \note, with
    term colours shared by chart series of the same name, and ::: derive blocks that transform one
    equation into the next.

  • echart(…; steps = …) moves a chart through axis windows on build steps. slide_figure builds a
    Makie figure on a slide (plots appear, others dim, the camera moves or turns in 3-D, orbits draw
    themselves with trace!, steps light the math terms they show), with callout! and slate_color.

  • slide_view(notebook; slide, step) lets an agent see a slide at a build step as the audience sees
    it, captured in a headless Chrome. A notebook URL with ?deck=S.K opens presenting slide S at step K.

  • Render the deck to a silent video of a set length (record panel, or render_deck): the hub records
    only the motion and holds each step for its share, by rehearsed time or reading time.

  • The presenter window shows the current and next step, a timer, rehearsal pacing and notes. Rehearsal
    (t) saves per-step timings that autoplay (a) follows. Overview (o), laser (l), drawing (d),
    black screen (b), go-to and a key list (?).

  • Recording (r) captures the deck with the microphone and slide sound (chosen with ⇧R) into
    recordings/ beside the notebook, with chapters and step timings.

  • A settings tool reads and changes a notebook's own settings, including the deck style.

  • A notebook's worker runs its own machinery on dedicated threads, so a notebook that saturates
    :default with CPU-bound work no longer stalls it. A :slate pool serves status, cancel, the hub
    heartbeat, telemetry and blob transfers, and never runs notebook code. A :slate_ui pool serves
    markdown {{ }} values, live re-renders, table pages, completions, and cells re-run by a reactive
    value push. Cells you run, and cells re-run by a control, stay on :default. Needs KaimonGate with
    set_request_router!. The pools come from
    DedicatedThreads, a dependency of the worker,
    so local, remote and region workers all have them. Dedicated worker threads in a notebook's
    settings, or dedicated_threads in slate.json, turns them off.

  • A notebook's worker serves its gate with KaimonGate's event-driven request loop, so each reply
    goes out as soon as it is ready. A cell run, a control change and a completion are sequences of
    requests, and each request now takes a fraction of a millisecond instead of several. Needs
    KaimonGate 1.6; with an older one the worker serves as before. KAIMON_GATE_OWNER_WAKE=0 turns
    it off.

  • Find in notebook (⌘F) matches cell names, so a cell can be found by its id. Replace does not
    touch them.

  • The Files panel shows a markdown file rendered, the way a markdown cell is, with ✎ Source to
    edit it. Images resolve from the file's own folder, and a link to another project file opens it in
    the panel.

  • A cell that defines functions, structs or macros next to an expensive computation is cached. Its
    entry stores the computed values, and on restore the definitions run again from the cell's source,
    so cells below can call them. This covers definitions inside a top-level begin, and a let that
    only names values and defines functions. Values of a type the notebook defines restore too.

  • Editing project source marks the cells that reach the edited code through other functions, not only
    the cells that name it. Slate uses the code the compiler invalidates and the package's own call
    graph, so a cell restored from the cache is found too. An edited show method marks the cells that
    build or hold a value of its type. The rule that marked every cell using a package when one of its
    exports changed is gone.

Changed

  • Notebook format 2. The lifecycle cell is a job: #%% job and a Slate.job footer. A notebook
    from 1.x is upgraded automatically: it opens as before and is written in format 2 when next saved.
    A notebook whose cells the upgrade changes (a #%% sweep cell from a pre-release build becomes a
    job cell) asks first, keeps a copy of the file as it was (name.format1.<time>.jl), and rewrites
    it. Notebooks in format 2 do not open correctly in older versions of Slate.
  • A cell kind or footer block from a newer Slate is kept: the cell shows read-only, never runs, and
    is saved back as written.
  • ☰ → 🪵 Worker log opens the worker dock at its Log tab. The separate log panel is gone.
  • A worker's log records read Info 18:47:51: …, level then clock, like a sweep task's.
  • A cached result is keyed on every package the notebook loads, directly or through another package,
    and on the Julia version. Cached cells recompute once after upgrading.
  • A cell that runs eval or include stops being a barrier for the cells below it once it has run:
    they depend on it only through the names it bound, and they can be cached. Before it has run, or
    after an edit, everything below it still waits on it.

Security

  • On Linux the hub accepts loopback connections only from its own user, so other accounts on a
    shared login node cannot reach it (KAIMONSLATE_ALLOW_OTHER_USERS opts out). Locally spawned
    workers use CURVE as remote ones do, and the hub refuses cross-site requests that carry no
    Origin.
  • The hub starts on the first free port and records it, and the Kaimon it embeds runs in strict
    mode with a persistent API key.

Fixed

  • A chart hidden while presenting is no longer resized to nothing, and a chart sized for a slide returns
    to its notebook size.
  • The slides PDF no longer fails to compile on a chart that was not captured.
  • A notebook's packages are rebuilt the way each was added: a local checkout is developed again
    from its path and a git package added from its URL, instead of being looked up by name. A
    checkout missing on this machine is skipped and named, and the rest still install.
  • Adding a package while another is loading no longer fails with "Unknown package" or drops a
    package added just before.
  • A precompile failure caused by a package whose compiled cache was deleted under the worker names
    that package and offers to restart the worker.
  • Copying rendered math gives its LaTeX source, $…$ inline and $$…$$ for display, with a line
    break between paragraphs, in the notebook and in exported pages. A selection that ends inside a
    formula takes the whole formula.
  • A cell re-run by a fast reactive value (a live chart updating ten times a second) reads as fresh
    between updates instead of flashing running and stale on every one. A run or a stale state now shows
    only once it has lasted 140 ms; a batch of three or more cells still shows at once.
  • Worker CPU usage in telemetry reads correctly on Apple Silicon Macs, where it was about 42 times too
    low.
  • In an exported page, a figure's @replay marks on one control move together or not at all. The
    control moves the figure only when every one of those marks has its data over the same positions;
    otherwise the figure stays as exported and the browser console names the marks. A figure could
    show data from different control positions when one mark's sweep failed or was exported at a
    different stride. (#64, reported by @disberd)
  • A markdown image with a relative path, such as ![logo](figures/logo.png), loads in the notebook
    and travels into every export. The path names a file in the notebook's project folder, as
    @asset's paths do; it used to resolve against the page's address and come back missing. (#79)
  • An agent in the notebook's panel that closes its notebook during a turn carries on with the turn.
    When the notebook opens again, the agent and its transcript are back in the panel, and a tab
    showing the notebook as closed returns to it by itself. (#78)
  • Deleting or renaming a cell that defined a function or a global removes it from the namespace, so a
    cell still using it fails as it would in a fresh run. Re-running a cell first removes the methods its
    previous run defined, so a changed signature doesn't leave the old method winning dispatch. (#33)
  • Editing a cell that defines something through a macro (Base.@kwdef, @enum, a notebook macro)
    restales the cells that read it.
  • Re-running a cell that changes a value in place (push!(v, …), acc += 1, v .*= 2, c[] += 1)
    re-runs the cell that defines the value first, so the change applies once.
  • A cell that calls a notebook function depends on what the function's body reads, and is the writer
    of what it assigns or mutates, including an argument a helper mutates. A loop at the top of a cell
    that updates an existing global is an update of it.
  • A global a cell binds in a way the analysis can't see, such as through a helper that evals into
    the notebook, gets its dependency edges once the cell has run.
  • Deleting a cell from the notebook runs its slate_on_cleanup callbacks.

Merged pull requests:

  • Make scheduler-region workers reliable on SLURM and PBS clusters (#37) (@haakon-e)
  • Replace the native title tooltip with a styled, delegated one (#39) (@haakon-e)
  • Collapse the topbar, DAG header, and cell header cleanly when narrow (#40) (@haakon-e)
  • Rebuild a region kernel when its node belongs to a new job (#46) (@haakon-e)
  • Call scheduler detection where it now lives (#47) (@haakon-e)
  • Stop the cells waiting on a withdrawn allocation request (#51) (@haakon-e)
  • Report and act on a region's allocation from the MCP tools (#52) (@haakon-e)
  • Start and reuse a region worker only inside its allocation (#53) (@haakon-e)
  • Load only the byte formatter in the sweep tile test (#55) (@haakon-e)
  • Start a region worker on a site whose CUDA module sets Julia's environment (#67) (@haakon-e)
  • Shoot the worker activity panel and telemetry view from the hub's facts (#74) (@haakon-e)
  • Expect a waiting forced cell to keep its force in the region tests (#77) (@haakon-e)
  • Add Codex ACP selection to notebook agent settings (#80) (@gwr-de)

Closed issues:

  • @replay: a figure with several marks on one control can move only in part (#64)
  • @replay: marks that share a computation sweep it once per mark (#65)
  • An agent stops working when it closes and reopens the notebook it is editing (#78)
  • A markdown image with a relative path to a file beside the notebook does not load (#79)