Repository navigation
Feature: Jupyter Support, Traces & Persistent REPL (Specs 00-02) - #46
petroslamb wants to merge 3 commits into
Conversation
|
Cool, this is a pretty big PR so may take some time for me to thoroughly test. A lot of nice features here though, I wanted to add Jupyter support for a while! |
i know, it got. big, tried to break it down to three commits each following a spec. if you need futher help or breaking down let me know. |
|
Actually i can break this down to 3 prs that build on each other, if you see is fit, with a more descriptive description for each. Before I do that work, wanted to check if you're aligned with the direction. Proposed PR SequencePR 1: Session vs Completion Interface + Context TrackingFormalizes the distinction between Why: Separates two usage patterns that were previously conflated, and gives models structured access to prior prompts/contexts. Spec: docs/specs/00-persistent-multi-turn-repl.md | Files: ~15 PR 2: Trace Artifacts (Notebook + Markdown)Auto-generates two trace artifacts per run:
Why: Better observability into RLM trajectories and nested Spec: docs/specs/01-trace-artifacts.md | Files: ~12 | Depends on: PR 1 PR 3: Jupyter SupportAdds native Why: Reduces friction for researchers who want to experiment locally in notebooks. Spec: docs/specs/02-jupyter-support.md | Files: ~8 | Depends on: PR 1, 2 Questions
There is a notebook that showcases this new implementation 00-RLM-Notebook-Integration.ipynb, along with the specs. If you find it useful i can help you out to make things easier to merge. |
78f767f to
dd57128
Compare
dd57128 to
a7d9abf
Compare
Summary
This PR implements three major specifications:
.trace.ipynb) and markdown traces providing visibility into RLM execution steps.jupyterenvironment allowing RLM code to execute directly within a Jupyter kernel with captured output and variable syncing.Changes
trace_notebook.pyandtrace_markdown.pyfor trace generation.JupyterREPLenvironment.RLMcore to support trace accumulation andtrace_markdownon completion objects.visualizer/updates to support new log formats.Testing
pytest tests/repl/test_jupyter_repl.py.uv run pytest.