如何在Jupyter笔记本上冻结单个单元格及其输出 [英] How to freeze a cell alone with its outputs on a jupyter notebook

查看:144
本文介绍了如何在Jupyter笔记本上冻结单个单元格及其输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Jupyter笔记本时,执行单元格的输出(包括错误消息)可能会很有用,因此我想单独冻结单元格及其输出,或者换句话说,将冻结为停用该单元格以保留输出.

When using Jupyter notebook, outputs (include error messages) from executing a cell can be useful and so I'd like to freeze the cell alone with its outputs, or in another word, to inactivate the cell in order to keep the output.

这可行吗?

推荐答案

从历史上看,这样的功能具有在本地Jupyter中不可用.

Historically, such a feature has not been available in native Jupyter.

但是,您可以尝试使用名为"Runtools"的Jupyter扩展该按钮显示应运行所有单元格并忽略异常的按钮.

However, you might try a Jupyter extension called "Runtools" available that displays a button that should run all cells and ignore exceptions.

这篇关于如何在Jupyter笔记本上冻结单个单元格及其输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆