Add Language Model tool for executing Python in notebooks#378
Draft
manzt wants to merge 1 commit into
Draft
Conversation
545142c to
b1ca40e
Compare
9fe4f0a to
a91f197
Compare
f65556e to
b8f5f99
Compare
33639d0 to
dd4dfe3
Compare
dd4dfe3 to
72762d4
Compare
4c803c1 to
a55d6e4
Compare
Contributor
Coverage Report
TypeScript statements: 44.18% (2111 / 4778) |
9d3b97c to
ef015a6
Compare
695e78e to
1ad8e65
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.