Skip to main content

jupyter

Read, modify, execute, and convert Jupyter notebooks programmatically. Use when working with .ipynb files for data science workflows, including editing cells, clearing outputs, or converting to other formats.

ソース情報

リポジトリ
OpenHands/extensions
ソースの最終更新活動
2026年7月1日 22:49
検出された SKILL.md の言語
英語
スター
157
フォーク
102

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
5 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
jupyter
description
Read, modify, execute, and convert Jupyter notebooks programmatically. Use when working with .ipynb files for data science workflows, including editing cells, clearing outputs, or converting to other formats.
triggers
["ipynb","jupyter"]
# Jupyter Notebook Guide Notebooks are JSON files. Cells are in `nb['cells']`, each has `source` (list of strings) and `cell_type` ('code', 'markdown', or 'raw'). ## Modifying Notebooks ```python import json with open('notebook.ipynb') as f: nb = json.load(f) # Modify nb['cells'][i]['source'], then: with open('notebook.ipynb', 'w') as f: json.dump(nb, f, indent=1) ``` ## Executing & Converting ```bash jupyter nbconvert --to notebook --execute --inplace notebook.ipynb # Execute in place jupyter nbconvert --to html notebook.ipynb # Convert to HTML jupyter nbconvert --to script notebook.ipynb # Convert to Python jupyter nbconvert --to markdown notebook.ipynb # Convert to Markdown ``` ## Finding Code ```bash grep -n "search_term" notebook.ipynb ``` PowerShell equivalent: ```powershell Select-String -Path notebook.ipynb -Pattern "search_term" ``` ## Cell Structure ```python # Code cell {"cell_type": "code", "execution_count": None, "metadata": {}, "outputs": [], "source": ["code\n"]} # Markdown cell {"cell_type": "markdown", "metadata": {}, "source": ["# Title\n"]} ``` ## Clear Outputs ```python for cell in nb['cells']: if cell['cell_type'] == 'code': cell['outputs'] = [] cell['execution_count'] = None ```
GitHubで見る