Convert markdown files to Jupyter notebooks (.ipynb). Splits markdown by `---` delimiters into cells, extracts code blocks (```python```, ```sql```) as code cells, and handles YAML front matter removal. Use when converting documentation, tutorials, or structured markdown into interactive Jupyter notebooks.
/plugin marketplace add haggler09/claude-haggler-skills/plugin install converter-skills@claude-haggler-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
LICENSE.txtscripts/convert.pyConvert markdown files to Jupyter notebooks with intelligent cell splitting:
--- horizontal rules into separate cellspython, sql) as code cellsuvx --with nbformat python scripts/convert.py input.md output.ipynb
---...--- block at file start is removed--- splits content into separate markdown cellspython, sql--- inside code blocks: Preserved, does not splitInput:
---
title: Tutorial
---
---
# Introduction
Welcome!
```python
print("hello")
SELECT * FROM users
Output notebook cells:
1. Markdown: `# Introduction\nWelcome!`
2. Code (python): `print("hello")`
3. Markdown: `# Data Query`
4. Code (sql): `SELECT * FROM users`
## CLI Options
```bash
uvx --with nbformat python scripts/convert.py <input.md> <output.ipynb> [options]
Options:
--code-languages Comma-separated languages for code cells
Default: python,sql
--- in file: Entire file as single section, code blocks still extracted--- in code blocks: Preserved as content, does not splitRun with uvx to automatically handle dependencies:
uvx --with nbformat python scripts/convert.py ...
Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.