/python:python-notebooks-asyncfrom python
Provides patterns for writing and debugging asyncio code in Jupyter notebooks and #%% cell workflows, including event-loop ownership, top-level await, and compatibility strategies.
Ships in python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Notebook kernels own the event loop; async code must cooperate with that ownership rather than fight it.
This skill covers orchestration patterns, top-level await, and compatibility constraints for .ipynb and #%% workflows.
Treat these recommendations as preferred defaults. When project constraints require deviation, call out tradeoffs and compensating controls.
asyncio.run() raises RuntimeError inside a notebook cell.gather, TaskGroup) in IPython kernels.python skill covers concurrency audit defaults.python-notebooks-async.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.await instead of asyncio.run() in notebook cells.asyncio.gather() or asyncio.TaskGroup..py modules, imported into notebooks.nest_asyncio only as a constrained compatibility fallback, not a default.await or collect results explicitly.asyncio.run() in a notebook cell.
The kernel already runs a loop; asyncio.run() tries to start a second one and raises RuntimeError.
Use await directly instead.nest_asyncio globally by default.
It patches the loop to allow reentrant calls but masks design problems and can hide subtle concurrency bugs.
Reserve it for legacy compatibility..py files.await silently produces a never-executed coroutine object, with no error until results are missing downstream.requests.get() block the event loop, starving concurrent tasks.
Use aiohttp, httpx, or asyncio.to_thread().references/notebooks-async.md — event-loop ownership, background-work and fire-and-forget patterns, script/notebook compatibility, blocking-library interop, nest_asyncio policyWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ahgraber/skills --plugin python4 skills in this plugin
/interactive-notebook-demoUse when authoring or reviewing a hands-on demo, tour, or walkthrough notebook (`#%%` percent-format or Jupyter) that demonstrates a feature, library, or API and doubles as semi-interactive documentation. Triggers: "write a demo notebook", "build a feature demo", "demo this library/API", "a notebook to walk through X", "interactive docs for this feature". Not for production/analysis notebooks or pure asyncio event-loop mechanics (see python-notebooks-async)./pythonUse when a Python change is about to be called done (before commit or PR) and whenever asked to review, audit, sanity-check, or clean up Python code or judge whether it meets standards. Also use at decision points the defaults cover: choosing retry/timeout/idempotency policy, config loading, pydantic placement, module boundaries, or a concurrency model./Other plugins' skills for the same job