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