JupyterLab: Run all cells below

醉酒当歌 提交于 2021-01-22 04:28:20

问题


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()'))

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)


回答1:


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



来源:https://stackoverflow.com/questions/53214644/jupyterlab-run-all-cells-below

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!