Skip to content

include code editing on jupiter notebooks - #1084

Merged
edeleastar merged 2 commits into
mainfrom
development
Jul 20, 2026
Merged

include code editing on jupiter notebooks#1084
edeleastar merged 2 commits into
mainfrom
development

Conversation

@edeleastar

Copy link
Copy Markdown
Contributor

No description provided.

lgriffin and others added 2 commits July 20, 2026 11:15
…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>
@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tutors Ready Ready Preview, Comment, Open in v0 Jul 20, 2026 12:36pm

@edeleastar
edeleastar merged commit 498f226 into main Jul 20, 2026
3 of 7 checks passed
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.

2 participants