Skip to content

Add Language Model tool for executing Python in notebooks#378

Draft
manzt wants to merge 1 commit into
mainfrom
push-yxzwlrxorxom
Draft

Add Language Model tool for executing Python in notebooks#378
manzt wants to merge 1 commit into
mainfrom
push-yxzwlrxorxom

Conversation

@manzt
Copy link
Copy Markdown
Collaborator

@manzt manzt commented Jan 30, 2026

Wires up scratchpad execution as a VS Code Language Model "tool" that AI agents like Copilot can invoke. When called, the tool runs Python code in the active marimo notebook and returns stdout/stderr/output back to the agent.

This required bumping the VS Code engine to 1.95.0 when the LM Tool API was stabilized. Also refactored VsCode.ts to consolidate the repetitive acquire/release pattern into acquireDisposable.

@manzt manzt marked this pull request as draft January 30, 2026 20:15
@manzt manzt force-pushed the push-yxzwlrxorxom branch 3 times, most recently from 545142c to b1ca40e Compare February 3, 2026 13:47
@manzt manzt force-pushed the push-yxzwlrxorxom branch 5 times, most recently from 9fe4f0a to a91f197 Compare February 13, 2026 17:21
@manzt manzt force-pushed the push-yxzwlrxorxom branch 2 times, most recently from f65556e to b8f5f99 Compare February 23, 2026 19:04
@manzt manzt force-pushed the push-yxzwlrxorxom branch from b8f5f99 to 829dfaa Compare March 2, 2026 20:46
@manzt manzt force-pushed the push-yxzwlrxorxom branch 2 times, most recently from 33639d0 to dd4dfe3 Compare March 20, 2026 15:42
@manzt manzt force-pushed the push-yxzwlrxorxom branch from dd4dfe3 to 72762d4 Compare March 27, 2026 18:57
@manzt manzt force-pushed the push-yxzwlrxorxom branch 3 times, most recently from 4c803c1 to a55d6e4 Compare April 17, 2026 14:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

Coverage Report

Area Lines Branches Functions
Python 48.80% (490 / 955) 39.45% (101 / 256)
TypeScript 44.50% (2030 / 4561) 36.76% (767 / 2086) 39.09% (559 / 1430)

TypeScript statements: 44.18% (2111 / 4778)

@manzt manzt force-pushed the push-yxzwlrxorxom branch 4 times, most recently from 9d3b97c to ef015a6 Compare April 21, 2026 22:09
@manzt manzt force-pushed the push-yxzwlrxorxom branch 3 times, most recently from 695e78e to 1ad8e65 Compare May 1, 2026 16:04
Wires up scratchpad execution as a VS Code Language Model "tool" that AI
agents like Copilot can invoke. When called, the tool runs Python code
in the active marimo notebook and returns stdout/stderr/output back to
the agent.

This required bumping the VS Code engine to 1.95.0 when the LM Tool API
was stabilized. Also refactored VsCode.ts to consolidate the repetitive
acquire/release pattern into `acquireDisposable` and `effectify`
helpers.
@manzt manzt force-pushed the push-yxzwlrxorxom branch from 1ad8e65 to 2d3dc62 Compare May 5, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant