xiaohongshu
xiaohongshu
jupyter-notebook-testing
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 i...
Full skill instructions
Interactive testing environment for EDS blocks using Jupyter notebooks in the browser via the ipynb-viewer block.
Use this skill when:
.ipynb files) for EDS block testingtestBlock, showPreview)showPreview()Test EDS blocks rapidly with Jupyter notebooks using browser execution:
testBlock and showPreview via ES6 importsOption A: Copy existing template
cp test.ipynb my-block-tests.ipynb
# View on EDS site using ipynb-viewer block
Option B: Create from scratch
.ipynb filetest.ipynbAdd ipynb-viewer block to your page:
| IPynb Viewer |
|--------------|
| /test.ipynb |
Simple pattern - import what you need:
// Any cell: Test a block
const { testBlock } = await import('/scripts/ipynb-helpers.js');
const block = await testBlock('accordion', `
<div>
<div>Question 1</div>
<div>Answer 1</div>
</div>
`);
console.log('✓ Block created');
return block.outerHTML;
Note: Just write your code naturally with await and return - it runs in async context.
Opens overlay:
// Any cell: Visual preview in overlay
const { showPreview } = await import('/scripts/ipynb-helpers.js');
const content = `
<div>
<div>Question 1</div>
<div>Answer 1</div>
</div>
`;
// Opens overlay with backdrop
await showPreview('accordion', content);
return '✓ Preview overlay opened';
End-user interaction and presentations with executable notebooks.
All helper functions are in scripts/ipynb-helpers.js, imported in each cell as needed.
Import what you need in each cell:
| Function | Purpose | Behavior |
|---|---|---|
testBlock() | Test block decoration | Uses native browser DOM |
showPreview() | Visual preview | Opens overlay with backdrop |
Usage Pattern:
// Import what you need in each cell
const { testBlock, showPreview } = await import('/scripts/ipynb-helpers.js');
// Use the functions
const block = await testBlock('accordion', '<div>content</div>');
await showPreview('accordion', '<div>content</div>');
// Use document directly
const div = document.createElement('div');
return block.outerHTML; // Return value to display in output
Live previews use full-screen overlays - no popup blockers!
✅ No popup blockers | ✅ Responsive testing | ✅ Better UX (stays on page) | ✅ Clean DOM | ✅ EDS-compatible | ✅ Full styling
Test blocks across different device sizes with one click:
Switch between views interactively with smooth transitions to test block responsiveness!
Block is decorated properly within overlay content area:
<div class="ipynb-preview-content">
<div class="blockname block"><!-- content rows --></div>
</div>
EDS blocks iterate over block.children directly. The overlay system ensures proper structure for decoration.
Benefits: No wrapper interference | Proper block decoration | Full CSS/JS support
Cause: CSS not loading or block decoration failed. Check DevTools Console + Network tab for 404s and errors. Fix: Verify block CSS exists.
Symptom: showPreview() runs but no overlay appears. Cause: JavaScript error during execution. Fix: Check browser console for errors.
Symptom: Cells fail with import errors. Cause: Incorrect import path. Fix: Use absolute path /scripts/ipynb-helpers.js
✅ Use For: Quick validation, content experimentation, debugging, prototyping, executable documentation, showPreview() testing, interactive demos
❌ Don't Use For: Complex interactions requiring Node.js, file system operations, automated testing, CI/CD pipelines
await directly - cells run in async contextreturn to display results in output cellconst { testBlock, showPreview } = await import(...)showPreview() for verificationThe ipynb-viewer EDS block executes notebooks in browser:
| IPynb Viewer |
|--------------|
| /path/to/notebook.ipynb |
Features: Interactive execution (async/await support), console capture, markdown rendering (tables, code blocks, lists), error handling
Key Points: No initialization required | Each cell imports independently | Browser uses native APIs | Helper functions via ES6 imports
For detailed information, see:
Jupyter notebooks with browser execution provide an interactive testing environment for EDS blocks that:
testBlock, showPreview via direct importsUse this skill whenever you need to rapidly test, debug, or document EDS blocks in the browser without the ceremony of traditional development environments.
Skill Status: ✅ Complete - Browser-only execution Line Count: < 500 lines Progressive Disclosure: Detailed content in reference files
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience