Skip to main content
Glama

insert_execute_code_cell

Insert a code cell into a Jupyter notebook at a specified position and execute it immediately with configurable timeout settings.

Instructions

Insert a cell at specified index from the currently activated notebook and then execute it with timeout and return it's outputs It is a shortcut tool for insert_cell and execute_cell tools, recommended to use if you want to insert a cell and execute it at the same time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cell_indexYesIndex of the cell to insert and execute (0-based)
cell_sourceYesCode source for the cell
timeoutNoMaximum seconds to wait for execution

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/datalayer/jupyter-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server