Skip to content
Back to skills

Jupyter

ASecurity

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.

  • 151 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added June 5, 2026
datapythonbash

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add OpenHands/extensions --skill jupyter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jupyter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jupyter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openhands-jupyter/badge)](https://www.skillsdirectory.com/skills/openhands-jupyter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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
```

## 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
```

Files in this skill

  • .plugin/plugin.json568 B
  • README.md1.5 KB
  • SKILL.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…