[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BX8XYR07W8XZGCVSPKRG4J":3,"skill-same:01M6BX8XYR07W8XZGCVSPKRG4J":90},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":17,"ownerHtmlUrl":55,"ownerBlogUrl":17,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6BX8XYR07W8XZGCVSPKRG4J","jupyter-notebook-testing","Jupyter 笔记本块测试","Create and manage Jupyter notebooks for testing Adobe Edge Delivery Services (EDS) blocks interactively in the browser using the ipynb-viewer block. Interactive JavaScript execution, overlay previews with backdrop, direct ES6 imports. Use when creating notebooks, testing blocks with ipynb files in browser, generating overlay previews, or creating executable documentation.","创建和管理 Jupyter 笔记本，用于在浏览器中通过 ipynb-viewer 块交互式测试 Adobe Edge Delivery Services (EDS) 块。支持交互式 JavaScript 执行、带背景遮罩的叠加预览、直接 ES6 导入。适用于创建笔记本、在浏览器中用 ipynb 文件测试块、生成叠加预览或创建可执行文档。","ddttom\u002Fallaboutv2","ddttom","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1929848?v=4","01M6BX6X3SP9HFP5NVP5148SG2","Tom Cranstoun","01M6BX6X8H7Y9RE377QF088DYG",2,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42],"testing","jupyter notebook","jupyter notebook testing","javascript","documentation","create","browser","jupyter notebooks","https","edge","services","execution","2026-11-10 10:12:30",false,"---\nname: jupyter-notebook-testing\ndescription: Create and manage Jupyter notebooks for testing Adobe Edge Delivery Services (EDS) blocks interactively in the browser using the ipynb-viewer block. Interactive JavaScript execution, overlay previews with backdrop, direct ES6 imports. Use when creating notebooks, testing blocks with ipynb files in browser, generating overlay previews, or creating executable documentation.\n\nmx:\n  canonicalUri: https:\u002F\u002Fraw.githubusercontent.com\u002Fddttom\u002Fallaboutv2\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FSKILL.md\n---\n\n# Jupyter Notebook Testing for EDS Blocks\n\nInteractive testing environment for EDS blocks using Jupyter notebooks **in the browser** via the ipynb-viewer block.\n\n## When to Use This Skill\n\nUse this skill when:\n\n- Creating new Jupyter notebooks (`.ipynb` files) for EDS block testing\n- Using direct imports for helper functions (`testBlock`, `showPreview`)\n- Testing blocks in browser environment with ipynb-viewer block\n- Generating overlay previews with `showPreview()`\n- Debugging blocks with different content structures\n- Creating executable documentation for blocks\n- Working with minimal DOM structure requirements\n- Troubleshooting preview styling or decoration issues\n\n## Overview\n\nTest EDS blocks rapidly with Jupyter notebooks using **browser execution**:\n\n- **Browser execution only**: Notebooks run via ipynb-viewer block on your EDS site\n- **Direct imports**: Each cell imports what it needs independently\n- **Helper functions**: `testBlock` and `showPreview` via ES6 imports\n- **Overlay previews**: Full-screen overlays with backdrop (no popup blockers)\n- **Minimal DOM**: Critical EDS-compatible structure (block decoration)\n\n### Key Benefits\n\n- **Browser-native**: Uses native browser APIs directly\n- **No build steps**: Test blocks immediately without compilation\n- **Visual previews**: Overlay with full styling (no popup blockers)\n- **No initialization**: Each cell imports what it needs\n- **EDS-compatible**: Follows EDS block decoration patterns\n- **Executable docs**: Share interactive notebooks with end users\n\n### Technology Stack\n\n- **ipynb-viewer**: EDS block for executing notebooks in browser\n- **Browser native APIs**: Direct DOM manipulation\n- **scripts\u002Fipynb-helpers.js**: External helper module with browser functions\n\n## Quick Start\n\n### 0. Verify Working Directory\n\n**⚠️ CRITICAL: Before creating or modifying notebook files:**\n\nVerify you're in the project root:\n\n```bash\npwd\n# Should output: \u002FUsers\u002Ftomcranstoun\u002FDocuments\u002FGitHub\u002FallaboutV2\n```\n\nIf in a subdirectory, navigate to project root:\n\n```bash\ncd \u002FUsers\u002Ftomcranstoun\u002FDocuments\u002FGitHub\u002FallaboutV2\n```\n\nVerify project markers:\n\n```bash\nls -la | grep -E \"(\\.claude|blocks|package\\.json|CLAUDE\\.md)\"\n```\n\nAll four must exist. If not, you're in the wrong directory!\n\n### 1. Create or Open Notebook\n\n**Option A: Copy existing template**\n\n```bash\ncp test.ipynb my-block-tests.ipynb\n# View on EDS site using ipynb-viewer block\n```\n\n**Option B: Create from scratch**\n\n- Create new `.ipynb` file\n- Copy the first code cell from `test.ipynb`\n- Add to EDS page via ipynb-viewer block\n\n### 2. View Notebook on EDS Site\n\nAdd ipynb-viewer block to your page:\n\n```\n| IPynb Viewer |\n|--------------|\n| \u002Ftest.ipynb |\n```\n\n### 3. Test Your Block\n\n**Simple pattern - import what you need:**\n\n```javascript\n\u002F\u002F Any cell: Test a block\nconst { testBlock } = await import('\u002Fscripts\u002Fipynb-helpers.js');\nconst block = await testBlock('accordion', `\n  \u003Cdiv>\n    \u003Cdiv>Question 1\u003C\u002Fdiv>\n    \u003Cdiv>Answer 1\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n`);\nconsole.log('✓ Block created');\nreturn block.outerHTML;\n```\n\n**Note:** Just write your code naturally with `await` and `return` - it runs in async context.\n\n### 4. Generate Visual Preview\n\n**Opens overlay:**\n\n```javascript\n\u002F\u002F Any cell: Visual preview in overlay\nconst { showPreview } = await import('\u002Fscripts\u002Fipynb-helpers.js');\nconst content = `\n  \u003Cdiv>\n    \u003Cdiv>Question 1\u003C\u002Fdiv>\n    \u003Cdiv>Answer 1\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n`;\n\n\u002F\u002F Opens overlay with backdrop\nawait showPreview('accordion', content);\n\nreturn '✓ Preview overlay opened';\n```\n\n## Browser Execution\n\n### Purpose\n\nEnd-user interaction and presentations with executable notebooks.\n\n### Features\n\n- Native browser APIs\n- Direct JavaScript execution\n- Console output display\n- Overlay previews (no popup blockers)\n- Interactive block decoration\n- No file system access\n\n### When to Use\n\n- Sharing executable demos\n- Interactive tutorials\n- Client presentations\n- Live coding examples\n- Block testing and experimentation\n\n## Helper Functions\n\nAll helper functions are in **scripts\u002Fipynb-helpers.js**, imported in each cell as needed.\n\n### Available Helper Functions\n\nImport what you need in each cell:\n\n| Function | Purpose | Behavior |\n|----------|---------|----------|\n| `testBlock()` | Test block decoration | Uses native browser DOM |\n| `showPreview()` | Visual preview | Opens overlay with backdrop |\n\n**Usage Pattern:**\n\n```javascript\n\u002F\u002F Import what you need in each cell\nconst { testBlock, showPreview } = await import('\u002Fscripts\u002Fipynb-helpers.js');\n\n\u002F\u002F Use the functions\nconst block = await testBlock('accordion', '\u003Cdiv>content\u003C\u002Fdiv>');\nawait showPreview('accordion', '\u003Cdiv>content\u003C\u002Fdiv>');\n\n\u002F\u002F Use document directly\nconst div = document.createElement('div');\n\nreturn block.outerHTML; \u002F\u002F Return value to display in output\n```\n\n## Overlay Preview System\n\nLive previews use full-screen overlays - no popup blockers!\n\n### How It Works\n\n1. **Creates overlay**: Full-screen overlay with semi-transparent backdrop\n2. **Responsive preview buttons**: Switch between Mobile (375×667), Tablet (768×1024), and Desktop (95%×95vh) views\n3. **Minimal DOM** (EDS-compatible): Block decorated properly with CSS\u002FJS\n4. **Auto-decoration**: Dynamically imports and executes block JavaScript\n\n### Key Benefits\n\n✅ No popup blockers | ✅ Responsive testing | ✅ Better UX (stays on page) | ✅ Clean DOM | ✅ EDS-compatible | ✅ Full styling\n\n### Responsive Preview Controls\n\nTest blocks across different device sizes with one click:\n\n- **? Mobile** (375px × 667px) - iPhone SE\u002F8 size\n- **? Tablet** (768px × 1024px) - iPad size\n- **?️ Desktop** (95% × 95vh) - Full desktop view (default)\n\nSwitch between views interactively with smooth transitions to test block responsiveness!\n\n## DOM Structure Requirements\n\n### Minimal Structure\n\nBlock is decorated properly within overlay content area:\n\n```html\n\u003Cdiv class=\"ipynb-preview-content\">\n  \u003Cdiv class=\"blockname block\">\u003C!-- content rows -->\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n### Why This Matters\n\nEDS blocks iterate over `block.children` directly. The overlay system ensures proper structure for decoration.\n\n**Benefits:** No wrapper interference | Proper block decoration | Full CSS\u002FJS support\n\n## Troubleshooting\n\n### Preview Shows Unstyled Content\n\n**Cause:** CSS not loading or block decoration failed. **Check DevTools Console + Network tab** for 404s and errors. **Fix:** Verify block CSS exists.\n\n### Overlay Not Appearing\n\n**Symptom:** `showPreview()` runs but no overlay appears. **Cause:** JavaScript error during execution. **Fix:** Check browser console for errors.\n\n### Import Errors\n\n**Symptom:** Cells fail with import errors. **Cause:** Incorrect import path. **Fix:** Use absolute path `\u002Fscripts\u002Fipynb-helpers.js`\n\n## When to Use Notebooks\n\n**✅ Use For:** Quick validation, content experimentation, debugging, prototyping, executable documentation, `showPreview()` testing, interactive demos\n\n**❌ Don't Use For:** Complex interactions requiring Node.js, file system operations, automated testing, CI\u002FCD pipelines\n\n## Best Practices\n\n1. **Import what you need**: Each cell imports helper functions independently\n2. **Write async code naturally**: Use `await` directly - cells run in async context\n3. **Return values**: Use `return` to display results in output cell\n4. **Use direct imports**: `const { testBlock, showPreview } = await import(...)`\n5. **Test visual output**: Always use `showPreview()` for verification\n6. **No initialization required**: Run any cell at any time\n7. **Structure notebooks**: Clear, focused cells with markdown documentation\n\n## Integration with ipynb-viewer Block\n\nThe **ipynb-viewer** EDS block executes notebooks in browser:\n\n```\n| IPynb Viewer |\n|--------------|\n| \u002Fpath\u002Fto\u002Fnotebook.ipynb |\n```\n\n**Features:** Interactive execution (async\u002Fawait support), console capture, markdown rendering (tables, code blocks, lists), error handling\n\n**Key Points:** No initialization required | Each cell imports independently | Browser uses native APIs | Helper functions via ES6 imports\n\n## Reference Files\n\nFor detailed information, see:\n\n- **[EXAMPLES.md](EXAMPLES.md)** - Content structure patterns and complete examples\n- **[ADVANCED_TECHNIQUES.md](ADVANCED_TECHNIQUES.md)** - Performance testing, batch testing, validation\n- **[TROUBLESHOOTING.md](TROUBLESHOOTING.md)** - Solutions for popup issues, styling issues\n\n## Related Documentation\n\n- **[docs\u002Ffor-ai\u002Fexplaining-jupyter.md](..\u002F..\u002Fdocs\u002Ffor-ai\u002Fexplaining-jupyter.md)** - Comprehensive Jupyter notebook documentation\n- **[blocks\u002Fipynb-viewer\u002FREADME.md](..\u002F..\u002Fblocks\u002Fipynb-viewer\u002FREADME.md)** - ipynb-viewer block documentation\n- **[scripts\u002Fipynb-helpers.js](..\u002F..\u002Fscripts\u002Fipynb-helpers.js)** - Helper functions implementation\n- **[test.ipynb](..\u002F..\u002Ftest.ipynb)** - Reference notebook with examples\n\n## Summary\n\nJupyter notebooks with browser execution provide an interactive testing environment for EDS blocks that:\n\n- **Browser-native execution**: Direct browser APIs, no Node.js complexity\n- **No initialization required**: Each cell imports what it needs\n- **Helper functions**: `testBlock`, `showPreview` via direct imports\n- **Overlay previews**: Visual feedback (no popup blockers)\n- **Minimal DOM structure**: EDS-compatible block decoration\n- **ipynb-viewer integration**: End-user executable notebooks\n- **Instant feedback**: No server or build overhead\n- **Shareable**: Create interactive demos and documentation\n\nUse this skill whenever you need to rapidly test, debug, or document EDS blocks in the browser without the ceremony of traditional development environments.\n\n---\n\n**Skill Status**: ✅ Complete - Browser-only execution\n**Line Count**: \u003C 500 lines\n**Progressive Disclosure**: Detailed content in reference files\n\n## Best Practices\n\n### Proper Newline Formatting in Notebook Cells\n\n**CRITICAL**: Every line in a Jupyter notebook cell's source array must end with `\\n` (newline character) except the last line. This ensures proper rendering and navigation in VSCode outline.\n\n**Why it matters for testing notebooks:**\n\n- VSCode outline shows test structure for easy navigation\n- Test scenarios organized by headings need proper outline hierarchy\n- Developers navigate between tests via outline sidebar\n- Without newlines, test sections don't appear in outline structure\n\n**Problem:**\n\n```python\n# ❌ WRONG - Breaks outline navigation\n\"source\": [\n  \"### Test: Accordion Expand\u002FCollapse**Setup**Code---### Test: Error Handling...\"\n]\n```\n\n**Solution:**\n\n```python\n# ✅ CORRECT - Clear test structure in outline\n\"source\": [\n  \"### Test: Accordion Expand\u002FCollapse\\n\",\n  \"\\n\",\n  \"**Setup**\\n\",\n  \"\\n\",\n  \"Code\\n\",\n  \"\\n\",\n  \"---\\n\",\n  \"\\n\",\n  \"### Test: Error Handling\\n\"\n]\n```\n\n**For testing notebooks:**\n\n- Use `##` for block categories (Accordion Tests, Hero Tests)\n- Use `###` for individual test cases\n- Proper newlines enable quick navigation between test scenarios\n- Developers can jump to specific tests via outline\n- Essential for notebooks with many test cases\n\n**Key rules:**\n\n1. Every line ends with `\\n` except the last line\n2. Test headings need newlines before and after\n3. Horizontal rules (test separators): `\"---\\n\"` + `\"\\n\"`\n4. Blank lines between test sections\n\n**See:** `LEARNINGS.md` for complete details and examples.\n","# Jupyter Notebook Testing for EDS Blocks\n\nInteractive testing environment for EDS blocks using Jupyter notebooks **in the browser** via the ipynb-viewer block.\n\n## When to Use This Skill\n\nUse this skill when:\n\n- Creating new Jupyter notebooks (`.ipynb` files) for EDS block testing\n- Using direct imports for helper functions (`testBlock`, `showPreview`)\n- Testing blocks in browser environment with ipynb-viewer block\n- Generating overlay previews with `showPreview()`\n- Debugging blocks with different content structures\n- Creating executable documentation for blocks\n- Working with minimal DOM structure requirements\n- Troubleshooting preview styling or decoration issues\n\n## Overview\n\nTest EDS blocks rapidly with Jupyter notebooks using **browser execution**:\n\n- **Browser execution only**: Notebooks run via ipynb-viewer block on your EDS site\n- **Direct imports**: Each cell imports what it needs independently\n- **Helper functions**: `testBlock` and `showPreview` via ES6 imports\n- **Overlay previews**: Full-screen overlays with backdrop (no popup blockers)\n- **Minimal DOM**: Critical EDS-compatible structure (block decoration)\n\n### Key Benefits\n\n- **Browser-native**: Uses native browser APIs directly\n- **No build steps**: Test blocks immediately without compilation\n- **Visual previews**: Overlay with full styling (no popup blockers)\n- **No initialization**: Each cell imports what it needs\n- **EDS-compatible**: Follows EDS block decoration patterns\n- **Executable docs**: Share interactive notebooks with end users\n\n### Technology Stack\n\n- **ipynb-viewer**: EDS block for executing notebooks in browser\n- **Browser native APIs**: Direct DOM manipulation\n- **scripts\u002Fipynb-helpers.js**: External helper module with browser functions\n\n## Quick Start\n\n### 0. Verify Working Directory\n\n**⚠️ CRITICAL: Before creating or modifying notebook files:**\n\nVerify you're in the project root:\n\n```bash\npwd\n# Should output: \u002FUsers\u002Ftomcranstoun\u002FDocuments\u002FGitHub\u002FallaboutV2\n```\n\nIf in a subdirectory, navigate to project root:\n\n```bash\ncd \u002FUsers\u002Ftomcranstoun\u002FDocuments\u002FGitHub\u002FallaboutV2\n```\n\nVerify project markers:\n\n```bash\nls -la | grep -E \"(\\.claude|blocks|package\\.json|CLAUDE\\.md)\"\n```\n\nAll four must exist. If not, you're in the wrong directory!\n\n### 1. Create or Open Notebook\n\n**Option A: Copy existing template**\n\n```bash\ncp test.ipynb my-block-tests.ipynb\n# View on EDS site using ipynb-viewer block\n```\n\n**Option B: Create from scratch**\n\n- Create new `.ipynb` file\n- Copy the first code cell from `test.ipynb`\n- Add to EDS page via ipynb-viewer block\n\n### 2. View Notebook on EDS Site\n\nAdd ipynb-viewer block to your page:\n\n```\n| IPynb Viewer |\n|--------------|\n| \u002Ftest.ipynb |\n```\n\n### 3. Test Your Block\n\n**Simple pattern - import what you need:**\n\n```javascript\n\u002F\u002F Any cell: Test a block\nconst { testBlock } = await import('\u002Fscripts\u002Fipynb-helpers.js');\nconst block = await testBlock('accordion', `\n  \u003Cdiv>\n    \u003Cdiv>Question 1\u003C\u002Fdiv>\n    \u003Cdiv>Answer 1\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n`);\nconsole.log('✓ Block created');\nreturn block.outerHTML;\n```\n\n**Note:** Just write your code naturally with `await` and `return` - it runs in async context.\n\n### 4. Generate Visual Preview\n\n**Opens overlay:**\n\n```javascript\n\u002F\u002F Any cell: Visual preview in overlay\nconst { showPreview } = await import('\u002Fscripts\u002Fipynb-helpers.js');\nconst content = `\n  \u003Cdiv>\n    \u003Cdiv>Question 1\u003C\u002Fdiv>\n    \u003Cdiv>Answer 1\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n`;\n\n\u002F\u002F Opens overlay with backdrop\nawait showPreview('accordion', content);\n\nreturn '✓ Preview overlay opened';\n```\n\n## Browser Execution\n\n### Purpose\n\nEnd-user interaction and presentations with executable notebooks.\n\n### Features\n\n- Native browser APIs\n- Direct JavaScript execution\n- Console output display\n- Overlay previews (no popup blockers)\n- Interactive block decoration\n- No file system access\n\n### When to Use\n\n- Sharing executable demos\n- Interactive tutorials\n- Client presentations\n- Live coding examples\n- Block testing and experimentation\n\n## Helper Functions\n\nAll helper functions are in **scripts\u002Fipynb-helpers.js**, imported in each cell as needed.\n\n### Available Helper Functions\n\nImport what you need in each cell:\n\n| Function | Purpose | Behavior |\n|----------|---------|----------|\n| `testBlock()` | Test block decoration | Uses native browser DOM |\n| `showPreview()` | Visual preview | Opens overlay with backdrop |\n\n**Usage Pattern:**\n\n```javascript\n\u002F\u002F Import what you need in each cell\nconst { testBlock, showPreview } = await import('\u002Fscripts\u002Fipynb-helpers.js');\n\n\u002F\u002F Use the functions\nconst block = await testBlock('accordion', '\u003Cdiv>content\u003C\u002Fdiv>');\nawait showPreview('accordion', '\u003Cdiv>content\u003C\u002Fdiv>');\n\n\u002F\u002F Use document directly\nconst div = document.createElement('div');\n\nreturn block.outerHTML; \u002F\u002F Return value to display in output\n```\n\n## Overlay Preview System\n\nLive previews use full-screen overlays - no popup blockers!\n\n### How It Works\n\n1. **Creates overlay**: Full-screen overlay with semi-transparent backdrop\n2. **Responsive preview buttons**: Switch between Mobile (375×667), Tablet (768×1024), and Desktop (95%×95vh) views\n3. **Minimal DOM** (EDS-compatible): Block decorated properly with CSS\u002FJS\n4. **Auto-decoration**: Dynamically imports and executes block JavaScript\n\n### Key Benefits\n\n✅ No popup blockers | ✅ Responsive testing | ✅ Better UX (stays on page) | ✅ Clean DOM | ✅ EDS-compatible | ✅ Full styling\n\n### Responsive Preview Controls\n\nTest blocks across different device sizes with one click:\n\n- **? Mobile** (375px × 667px) - iPhone SE\u002F8 size\n- **? Tablet** (768px × 1024px) - iPad size\n- **?️ Desktop** (95% × 95vh) - Full desktop view (default)\n\nSwitch between views interactively with smooth transitions to test block responsiveness!\n\n## DOM Structure Requirements\n\n### Minimal Structure\n\nBlock is decorated properly within overlay content area:\n\n```html\n\u003Cdiv class=\"ipynb-preview-content\">\n  \u003Cdiv class=\"blockname block\">\u003C!-- content rows -->\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n### Why This Matters\n\nEDS blocks iterate over `block.children` directly. The overlay system ensures proper structure for decoration.\n\n**Benefits:** No wrapper interference | Proper block decoration | Full CSS\u002FJS support\n\n## Troubleshooting\n\n### Preview Shows Unstyled Content\n\n**Cause:** CSS not loading or block decoration failed. **Check DevTools Console + Network tab** for 404s and errors. **Fix:** Verify block CSS exists.\n\n### Overlay Not Appearing\n\n**Symptom:** `showPreview()` runs but no overlay appears. **Cause:** JavaScript error during execution. **Fix:** Check browser console for errors.\n\n### Import Errors\n\n**Symptom:** Cells fail with import errors. **Cause:** Incorrect import path. **Fix:** Use absolute path `\u002Fscripts\u002Fipynb-helpers.js`\n\n## When to Use Notebooks\n\n**✅ Use For:** Quick validation, content experimentation, debugging, prototyping, executable documentation, `showPreview()` testing, interactive demos\n\n**❌ Don't Use For:** Complex interactions requiring Node.js, file system operations, automated testing, CI\u002FCD pipelines\n\n## Best Practices\n\n1. **Import what you need**: Each cell imports helper functions independently\n2. **Write async code naturally**: Use `await` directly - cells run in async context\n3. **Return values**: Use `return` to display results in output cell\n4. **Use direct imports**: `const { testBlock, showPreview } = await import(...)`\n5. **Test visual output**: Always use `showPreview()` for verification\n6. **No initialization required**: Run any cell at any time\n7. **Structure notebooks**: Clear, focused cells with markdown documentation\n\n## Integration with ipynb-viewer Block\n\nThe **ipynb-viewer** EDS block executes notebooks in browser:\n\n```\n| IPynb Viewer |\n|--------------|\n| \u002Fpath\u002Fto\u002Fnotebook.ipynb |\n```\n\n**Features:** Interactive execution (async\u002Fawait support), console capture, markdown rendering (tables, code blocks, lists), error handling\n\n**Key Points:** No initialization required | Each cell imports independently | Browser uses native APIs | Helper functions via ES6 imports\n\n## Reference Files\n\nFor detailed information, see:\n\n- **[EXAMPLES.md](EXAMPLES.md)** - Content structure patterns and complete examples\n- **[ADVANCED_TECHNIQUES.md](ADVANCED_TECHNIQUES.md)** - Performance testing, batch testing, validation\n- **[TROUBLESHOOTING.md](TROUBLESHOOTING.md)** - Solutions for popup issues, styling issues\n\n## Related Documentation\n\n- **[docs\u002Ffor-ai\u002Fexplaining-jupyter.md](..\u002F..\u002Fdocs\u002Ffor-ai\u002Fexplaining-jupyter.md)** - Comprehensive Jupyter notebook documentation\n- **[blocks\u002Fipynb-viewer\u002FREADME.md](..\u002F..\u002Fblocks\u002Fipynb-viewer\u002FREADME.md)** - ipynb-viewer block documentation\n- **[scripts\u002Fipynb-helpers.js](..\u002F..\u002Fscripts\u002Fipynb-helpers.js)** - Helper functions implementation\n- **[test.ipynb](..\u002F..\u002Ftest.ipynb)** - Reference notebook with examples\n\n## Summary\n\nJupyter notebooks with browser execution provide an interactive testing environment for EDS blocks that:\n\n- **Browser-native execution**: Direct browser APIs, no Node.js complexity\n- **No initialization required**: Each cell imports what it needs\n- **Helper functions**: `testBlock`, `showPreview` via direct imports\n- **Overlay previews**: Visual feedback (no popup blockers)\n- **Minimal DOM structure**: EDS-compatible block decoration\n- **ipynb-viewer integration**: End-user executable notebooks\n- **Instant feedback**: No server or build overhead\n- **Shareable**: Create interactive demos and documentation\n\nUse this skill whenever you need to rapidly test, debug, or document EDS blocks in the browser without the ceremony of traditional development environments.\n\n---\n\n**Skill Status**: ✅ Complete - Browser-only execution\n**Line Count**: \u003C 500 lines\n**Progressive Disclosure**: Detailed content in reference files\n\n## Best Practices\n\n### Proper Newline Formatting in Notebook Cells\n\n**CRITICAL**: Every line in a Jupyter notebook cell's source array must end with `\\n` (newline character) except the last line. This ensures proper rendering and navigation in VSCode outline.\n\n**Why it matters for testing notebooks:**\n\n- VSCode outline shows test structure for easy navigation\n- Test scenarios organized by headings need proper outline hierarchy\n- Developers navigate between tests via outline sidebar\n- Without newlines, test sections don't appear in outline structure\n\n**Problem:**\n\n```python\n# ❌ WRONG - Breaks outline navigation\n\"source\": [\n  \"### Test: Accordion Expand\u002FCollapse**Setup**Code---### Test: Error Handling...\"\n]\n```\n\n**Solution:**\n\n```python\n# ✅ CORRECT - Clear test structure in outline\n\"source\": [\n  \"### Test: Accordion Expand\u002FCollapse\\n\",\n  \"\\n\",\n  \"**Setup**\\n\",\n  \"\\n\",\n  \"Code\\n\",\n  \"\\n\",\n  \"---\\n\",\n  \"\\n\",\n  \"### Test: Error Handling\\n\"\n]\n```\n\n**For testing notebooks:**\n\n- Use `##` for block categories (Accordion Tests, Hero Tests)\n- Use `###` for individual test cases\n- Proper newlines enable quick navigation between test scenarios\n- Developers can jump to specific tests via outline\n- Essential for notebooks with many test cases\n\n**Key rules:**\n\n1. Every line ends with `\\n` except the last line\n2. Test headings need newlines before and after\n3. Horizontal rules (test separators): `\"---\\n\"` + `\"\\n\"`\n4. Blank lines between test sections\n\n**See:** `LEARNINGS.md` for complete details and examples.\n",{"mx":48,"name":5,"description":7},{"canonicalUri":49},"https:\u002F\u002Fraw.githubusercontent.com\u002Fddttom\u002Fallaboutv2\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FSKILL.md","main","94cac13323e3a1686d255ad6a4455bc0d2272b8c",".claude\u002Fskills\u002Fjupyter-notebook-testing",0,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2","https:\u002F\u002Fgithub.com\u002Fddttom","Independent Technology Consultant at DIGITAL DOMAIN TECHNOLOGIES LIMITED","2026-11-14 16:27:17",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add ddttom\u002Fallaboutv2 --skill jupyter-notebook-testing",{"tool":64,"command":65},"bunx","bunx skills add ddttom\u002Fallaboutv2 --skill jupyter-notebook-testing",{"tool":67,"command":68},"pnpm","pnpm dlx skills add ddttom\u002Fallaboutv2 --skill jupyter-notebook-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FSKILL.md",true,[72,78,82,86],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"ADVANCED_TECHNIQUES.md","REFERENCE","参考文档",14474,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FADVANCED_TECHNIQUES.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"EXAMPLES.md",15821,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FEXAMPLES.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"INSTALLATION.md",5654,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FINSTALLATION.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"TROUBLESHOOTING.md",10683,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjupyter-notebook-testing\u002FTROUBLESHOOTING.md",[91,110,125,141,150,171],{"skillNo":92,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":43},"01M6BX9XTV2PTCX7CC2DS4NC9N","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[31,99,100,101,102,103,104,105,37,106,107,108,109],"webapp testing","frontend","screenshots","playwright","web","debugging","toolkit","license","ui","logs","applications",{"skillNo":111,"name":112,"nameZh":17,"description":113,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":43},"01M6BX9V12H31MGZ0YYXZJ6R05","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[118,119,106,120,105,121,122,123,124],"theme factory","artifacts","generate","SET","docs","fly","slides",{"skillNo":126,"name":127,"nameZh":17,"description":128,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":43},"01M6BX9QWNATVKD88BNQHVZ92A","Testing Blocks","Guide for testing code changes in AEM Edge Delivery projects including blocks, scripts, and styles. Use this skill after making code changes and before opening a pull request to validate functionality. Covers unit testing for utilities and logic, browser testing with Playwright\u002FPuppeteer, linting, performance validation, and guidance on which tests to maintain vs use as throwaway validation.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting-blocks\u002FSKILL.md",[],[31,127,132,40,37,39,133,102,134,135,136,137,138,139,140],"projects","performance","validate","pull request","code","validation","puppeteer","pull","browser testing",{"skillNo":142,"name":143,"nameZh":17,"description":144,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":43},"01M6BX9PFJ1F4QSAXHGVPB4MB0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftemplate-skill\u002FSKILL.md",[],[148,149,39],"template skill","template",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":156,"sourceHtmlUrl":157,"categories":158,"keywords":165,"publishedAt":43},"01M6BX9K7A0AJM3RQJ70G3XNX9","slack-gif-creator","Slack 动图 GIF 制作","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","用于创建针对 Slack 优化的动图 GIF 的工具包，包含大小限制校验器和可组合的动画原语。当用户请求制作 Slack 用的动图 GIF 或表情动画时适用，例如“帮我做一个 X 做 Y 的 Slack GIF”。","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fslack-gif-creator\u002FSKILL.md",[159,162],{"categoryNo":160,"categoryName":161,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",{"categoryNo":163,"categoryName":164,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8DBWTZ7VT76QWWE5JQN8D","动图 GIF 制作",[166,167,168,169,105,106,170],"slack","slack gif creator","constraints","composable","Animation",{"skillNo":172,"name":173,"nameZh":174,"description":175,"descriptionZh":176,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":177,"categories":178,"keywords":185,"publishedAt":43},"01M6BX9G4PJA81VK9ZNQENT3B2","skill-developer","Claude Code 技能开发与管理","Create and manage Claude Code skills following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns, file paths, content patterns), enforcement levels (block, suggest, warn), hook mechanisms (UserPromptSubmit, PreToolUse), session tracking, and the 500-line rule.","遵循 Anthropic 最佳实践创建和管理 Claude Code 技能。在创建新技能、修改 skill-rules.json、理解触发模式、使用 hooks、调试技能激活，或实现渐进式披露时使用。涵盖技能结构、YAML frontmatter、触发类型（关键词、意图模式、文件路径、内容模式）、强制级别（block、suggest、warn）、hook 机制（UserPromptSubmit、PreToolUse）、会话跟踪以及 500 行规则。","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fskill-developer\u002FSKILL.md",[179,182],{"categoryNo":180,"categoryName":181,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":183,"categoryName":184,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[186,187,104,36,136,188,189,39,190,191,192,193],"skill developer","developer","best practices","content","file","yaml","json","claude code skills"]