JupyterLab:运行下面的所有单元格 [英] JupyterLab: Run all cells below

查看:348
本文介绍了JupyterLab:运行下面的所有单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jupyter Notebook中,我可以使用以下命令自动执行当前单元格下方的所有单元格.

In the Jupyter Notebook I could use the following command to automatically execute all cells below the current cell.

from IPython.display import Javascript
display(Javascript('IPython.notebook.execute_cells_below()'))

但是,这似乎不适用于JupyterLab.如何为JupyterLab进行这项工作? (我想在单击按钮后自动执行下面的所有单元格.此操作的原始代码发布在这里:

However, this doesn't seem to work with JupyterLab. How can I make this work for JupyterLab? (I want to automatically execute all cells below after a button click occured. The original code for this was posted here: IPython - Run all cells below from a widget)

推荐答案

它是内置的.单击左上角的运行菜单,然后选择"Run Selected Cell and All Below".

It is built-in. Click the run menu at the top-left and select "Run Selected Cell and All Below".

这篇关于JupyterLab:运行下面的所有单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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