/nightly:replfrom nightly
Replaces ad-hoc python3 -c commands and throwaway scripts with persistent nteract notebooks for iterative data exploration, analysis, and plotting. Notebooks preserve state between cells and render rich output.
Ships in nightly. 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.
None: SKILL.md is the whole skill.
Use a notebook-backed REPL for multi-step Python work when nteract notebook tools are available. Prefer it over chaining python3 -c commands, writing throwaway .py scripts, or running exploratory snippets. Notebooks preserve state between cells, render rich output (tables, plots, errors with tracebacks), and let users and agents view updates in realtime.
Prefer the direct pi tools when present:
python_repl: execute code in the persistent notebook session.python_add_dependencies: batch-add packages and hot-sync the environment.python_save_notebook: save the backing notebook.If only MCP tools are available, use create_notebook, create_cell, execute_cell, set_cell, inspect_notebook, and get_results.
If you loaded this skill but neither direct pi tools (python_repl, python_add_dependencies) nor MCP notebook tools appear, do not fall back to python3 -c. Ask the user to verify that the nteract plugin is installed and enabled in Codex. Then have them restart Codex after any plugin or marketplace changes. The most common cause is installing or updating the plugin after the current Codex session started.
If Codex reports the plugin is installed but tools still do not appear, ask the user to refresh and reinstall it to clear stale cache:
codex plugin marketplace upgrade nteract-plugins &&
codex plugin remove nightly@nteract-plugins &&
codex plugin add nightly@nteract-plugins
codex mcp list
For stable, use nteract@nteract-plugins in both plugin commands. If the marketplace refresh fails or times out, stop before removing the plugin and follow the marketplace recovery instructions.
Start a new Codex session after reinstalling; running sessions do not hot-load newly installed MCP tools.
If tools still don't appear after restarting Codex:
nteract doctor to check the installation (nteract --channel nightly doctor for the Nightly install).An older plugin proxy can reject a newer worker's ID-or-handle schema, even for create_notebook. This error can mean the plugin proxy needs updating, not the desktop app:
"This child does not advertise required notebook_handle routing; upgrade the child before using notebook tools"
To recover:
reconnect: it replaces only the worker and does not upgrade the proxy.python_repl({
"code": "import numpy as np\nnp.arange(3)",
"dependencies": ["numpy"]
})
Pass dependencies on the first python_repl call when imports may be missing. The pi REPL records them before kernel startup when possible; later dependency additions use hot-sync.
create_notebook(dependencies=["numpy"])
# Keep notebook_id as n and notebook_handle as h for deliberate release.
create_cell(notebook_id=n, source="import numpy as np\nnp.arange(3)", cell_type="code", and_run=true)
Targeting:
notebook_id from create_notebook or connect_notebook and pass it on every notebook call.domain for hosted notebooks. Omitting domain always selects this server's local daemon.cell_id identifies a cell inside the selected notebook, never the notebook itself.Handles and retention:
notebook_handle still works instead of ID/domain and identifies one independent attachment with no TTL.disconnect_notebook requires that exact handle; expired handles never rebind. Use the target form advertised by the running server on older installations.notebook_not_connected, connect to the same ID/domain and retry.target.notebook_handle returned by an ID call can deliberately release that shared retention; it is not a chat-private lease.Inspection and waiting:
inspect_notebook(notebook_id=n) for bounded cells, source previews, readiness, and resource links.cell_ids, start/count, and full_source with source_start/source_chars. Pagination reads live state; compare cursors before combining pages after edits.after=cursor, timeout_secs=25; without a cursor it returns an immediate baseline.execute_cell and and_run already wait for an initial result. If a run is still active, continue with get_results(notebook_id=n, execution_id=e, timeout_secs=25). This waits for the same run; executing again starts another run.wait_for_notebook_change remains callable for compatibility but is not advertised.Start or reuse a notebook-backed REPL:
python_repl(...); the session is created lazily and state persists.create_notebook(...) or connect_notebook(...) and retain its notebook_id as n and release handle as h.Declare dependencies before import-heavy code:
dependencies to python_repl or call python_add_dependencies.dependencies to create_notebook or use manage_dependencies(notebook_id=n, ...).Run and iterate:
python_repl repeatedly; variables/imports persist.set_cell(notebook_id=n, ...) and rerun with execute_cell(notebook_id=n, cell_id=...).Check your work:
inspect_notebook(notebook_id=n) and get_results(notebook_id=n, execution_id=..., timeout_secs=25) for an existing run.Save when done:
python_save_notebook(...) or save_notebook(notebook_id=n, ...).
Open the app for the user:
show_notebook(notebook_id=n) when they ask to see the MCP notebook. This can be disruptive if unexpected.
python3 -c commandspython3 -c "print(2+2)" is fine as-is)python3 script.py)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Nov 22, 2026
npx claudepluginhub nteract/nteract --plugin nightlyOther plugins' skills for the same job