-
Interrupt - 暂停程序stops the execution of the code (helpful when you have a long operation but forget to change some parameter, or in case you have an infinite loop)
-
Restart - 清空变量 释放内存clears up all of the variables and releases memory
-
Restart & Clear Output - 重启内核清空所有输出restarts the kernel + clears all of the cell outputs in the notebook
-
Restart & Run All - 重启内核然后重新运行代码块restarts the kernel + executes all of the cells
jupyter的kernel功能:Interrupt、Restart、Clear Output、Run All
最新推荐文章于 2024-07-05 18:21:49 发布
本文介绍了编程中四个关键操作:Interrupt用于暂停执行,帮助你在忘记修改参数或遇到无限循环时及时停止;Restart可以清空所有变量,释放内存空间;Restart & Clear Output不仅重启内核,还清除所有单元格输出;而Restart & Run All则会重启内核并重新运行全部代码块。这些操作对于有效管理和调试代码至关重要。
摘要由CSDN通过智能技术生成