interrupt_python
Send an interrupt signal to a currently running IPython kernel execution. Returns idle if the kernel is already idle.
Instructions
向当前正在运行的 execution 发送 kernel 中断信号。
中断语义
该工具只作用于当前 running 记录。信号已发送不等同于记录已终态:
kernel 到达 IOPub idle 后,记录才会报告 interrupted、
error 或其他最终状态。kernel 空闲时返回 idle。
Returns:
已发送信号时返回目标 execution;kernel 空闲时返回 idle。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||