← スキル一覧に戻る
name: md2ipynb
description: "Convert markdown files to Jupyter notebooks (.ipynb). Splits markdown by

md2ipynb
by haggler09
Custom skills marketplace for Claude Code
⭐ 0🍴 0📅 2026年1月10日
SKILL.md
name: md2ipynb
description: "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."
license: MIT
Markdown to Jupyter Notebook Conversion
Overview
Convert markdown files to Jupyter notebooks with intelligent cell splitting:
- Split by
---horizontal rules into separate cells - Extract fenced code blocks (
python,sql) as code cells - Automatically remove YAML front matter
Quick Start
uvx --with nbformat python scripts/convert.py input.md output.ipynb
Conversion Rules
- YAML Front Matter: First
---...---block at file start is removed - Section Delimiters:
---splits content into separate markdown cells - Code Blocks: Fenced code blocks become code cells:
python,sql
- Other code blocks: Non-target languages and language-less blocks remain in markdown cell (not extracted)
---inside code blocks: Preserved, does not split
Example
Input:
---
title: Tutorial
---
---
# Introduction
Welcome!
```python
print("hello")
Data Query
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
Edge Cases
- Empty sections: Skipped
- No
---in file: Entire file as single section, code blocks still extracted ---in code blocks: Preserved as content, does not split- File without front matter: First content becomes first cell
Dependencies
Run with uvx to automatically handle dependencies:
uvx --with nbformat python scripts/convert.py ...
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です