notebook-refresh
Skill by UCL-CORU
Clears and re-runs Jupyter notebooks using the project's uv environment. Built for users who want to validate, refresh, or clean and run their notebooks.
Install notebook-refresh
Built from the published package, never by AI.
git clone --depth 1 https://github.com/UCL-CORU/patientflow /tmp/patientflow && mkdir -p ~/.claude/skills && cp -r /tmp/patientflow/.cursor/skills/notebook-refresh ~/.claude/skills/notebook-refreshRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/UCL-CORU/patientflow /tmp/patientflow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/patientflow/.cursor/skills/notebook-refresh ~/.gemini/antigravity-cli/skills/notebook-refreshAntigravity 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
Notebook Refresh is an agent skill that clears and re-runs Jupyter notebooks inside a project's uv environment. It first clears the outputs of each notebook with nbconvert, then executes the notebook in place with a 600 second timeout. The skill can process every .ipynb file in a directory, or only notebooks changed according to git, either uncommitted changes or changes on the current branch compared with main.
After each run, the skill reports whether the notebook succeeded or failed. If a notebook fails, it captures the error message and reports which cell or module caused the failure. It ends with a summary table of results for all processed files. The skill is intended for users who work with Jupyter notebooks in a uv-managed Python project and want to validate or refresh them.
Written from the project's SKILL.md and checked against it.
What it can do
- Determine scopeChooses all notebooks in a directory or only notebooks changed according to git.
- Clear outputsClears notebook outputs with nbconvert before running each notebook.
- Execute notebooksRuns each notebook in place with a 600 second execution timeout.
- Report failuresCaptures the error message and reports the cell or module that failed.
- Summary reportProvides a table of Success or Failure results for all processed files.
What you need
- uv environment for the project
- Jupyter notebooks (.ipynb files)
- nbconvert and ipykernel installed in the uv environment
- git, for the changed-notebooks-only scope
Try asking
- Clean and run all notebooks in the analysis folder.
- Refresh only the notebooks changed on this branch compared with main.
- Validate my notebooks and tell me which cell failed, if any.
Good to know
- Notebooks are modified in place because the commands use --inplace.
- Each notebook execution has a timeout of 600 seconds.
- The changed-only scope depends on git and assumes a base branch named main unless adjusted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .cursor/skills/notebook-refresh/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to notebook-refresh
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
notebook-refresh: common questions
Does this skill change my notebook files?
Yes. Both steps run nbconvert with --inplace, so the clearing and execution are written back to each notebook.
What happens when a notebook fails to run?
The skill captures the error message from the terminal output and reports exactly which cell or module caused the failure.
Can it refresh only the notebooks I changed?
Yes. It uses git diff to find changed notebooks, either uncommitted changes or changes on the current branch versus main, and stops with a report if none changed.
How do I install notebook-refresh?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is notebook-refresh free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is notebook-refresh safe to use?
It scores 59 of 100. Grades: maintenance A, licence A, quality C. 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 notebook-refresh?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
