ipython_start
Start a named Python 2 IPython session using a specified interpreter path, with optional working directory and environment variables. Use it to launch an isolated kernel for executing code in a chosen virtualenv.
Instructions
Start a named Python 2 IPython session. python_path must be an absolute path to a Python 2.7 interpreter with this project's requirements installed -- pass a virtualenv's interpreter to work inside that virtualenv. Multiple named sessions can run at once and are fully independent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the kernel. Defaults to the MCP server's cwd. | |
| env | No | Extra environment variables, merged over the inherited environment. Use for PYTHONPATH or settings-module variables that must be set before imports resolve. | |
| name | Yes | Session name, 1-64 characters of [A-Za-z0-9_-]. Must not already be in use. | |
| python_path | Yes | Absolute path to the Python 2.7 interpreter to run this session with. |