include code editing on jupiter notebooks - #1084
Merged
Merged
Conversation
…tion Notebook cells can now use metadata.tags to enable two new behaviors: - "solution" tag: cell is collapsed behind a "Show Solution" toggle, with a separate "Run" button to reveal output (two-stage reveal) - "exercise" tag: cell renders as an editable CodeMirror editor with a "Run" button that executes Python code via Pyodide (WebAssembly) The Pyodide runtime loads from CDN on first use and is shared across all exercise cells on the page. A "Reset" button restores the original skeleton code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Features: - Solution cells with two-stage reveal (code first, then output) - Exercise cells with editable CodeMirror editor and Pyodide execution - Icon indicators for solution (🔒) and exercise (✎) cells Conflict resolution: - package.json: Kept development's current dependencies + added CodeMirror 6 packages - package-lock.json: Regenerated with npm install - Notebook.svelte: Auto-merged cleanly New dependencies: - @codemirror/lang-python ^6.2.1 - @codemirror/state ^6.7.1 - @codemirror/theme-one-dark ^6.1.3 - @codemirror/view ^6.43.6 - codemirror ^6.0.2 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.