jupytext
Skill by ninehills
Jupytext helps you write Jupyter notebooks as plain Python files in percent format and convert them to and from .ipynb. It asks which format the user wants before creating a new notebook.
Install jupytext
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ninehills/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/jupytext ~/.claude/skills/jupytextRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ninehills/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/jupytext ~/.gemini/antigravity-cli/skills/jupytextAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps users write Jupyter notebooks as plain Python scripts. It uses Jupytext to convert between .py and .ipynb files in both directions. When a user asks for a new notebook, the skill first asks whether they want a .py percent format file or a traditional .ipynb file. It then generates the chosen format. The percent format uses `# %%` markers to separate cells.
The skill also covers YAML front matter, paired notebook setup, and the Jupytext config files jupytext.toml and pyproject.toml. It lists common CLI commands such as conversion and sync. It is aimed at users who want version control and code review friendly notebooks. It is not meant for debugging existing notebooks or writing ordinary Python scripts.
Written from the project's SKILL.md and checked against it.
What it can do
- Create percent format notebooksGenerates a .py file with `# %%` cell markers for code and Markdown cells.
- Create .ipynb notebooksBuilds a traditional .ipynb file with nbformat or by writing the JSON directly.
- Format choice promptAsks the user to pick .py percent format or .ipynb before generating a file.
- Paired notebook setupSets formats to ipynb,py:percent so both files stay in sync.
- Format conversion commandsLists Jupytext CLI commands to convert, sync, set formats and set kernel info.
- Config filesShows how to set defaults in jupytext.toml or pyproject.toml.
What you need
- Python
- pip to install jupytext
Try asking
- Create a new notebook for analyzing sales data, as a .py percent file
- Convert my notebook.ipynb to a percent format Python file
- Set up jupytext so script.py and script.ipynb stay in sync
Good to know
- The skill does not cover debugging existing notebooks.
- The light format is not recommended unless the user asks for it.
- The .ipynb guide it references (references/nbformat-guide.md) is not included in the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: jupytext/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to jupytext
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
jupytext: common questions
When should I pick percent format over .ipynb?
The skill recommends percent format for version control, code review, and editor work. It says .ipynb suits a native Jupyter experience with many outputs and charts.
Does this skill debug existing notebooks?
No. The skill states it is not used for debugging existing notebooks or for writing ordinary Python scripts.
How do I keep a .py and an .ipynb file in sync?
Add formats: ipynb,py:percent to the YAML front matter or config, then run jupytext --sync on the file.
How do I install jupytext?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is jupytext free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is jupytext safe to use?
It scores 54 of 100. Grades: maintenance C, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to jupytext?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
