IPython Notebook:如何运行多个单元? [英] Ipython Notebook: how to run multiple cells?

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

问题描述

我的笔记本有点长,我将其分为几个部分. 有时,我只想运行其中的某个部分,即consecutive cells

My notebook gets a bit of long, I divide it into several parts. Sometimes, I just want to run a certain part of it, i.e consecutive cells

例如,

我想运行Cell IN [52] to[54],而不是运行IN [51],[59].我该怎么办?

I want to run Cell IN [52] to[54], not run IN [51],[59]. How can I do it?

我只知道run aboverun below的选项,我看不到run selected cells之类的东西.

I only know there is option for run above, run below, I didn't see anything like run selected cells.

更新:现在Jupyter Notebook内置了此功能,只需按CTRL +单击

UPDATE: Now Jupyter Notebook has this feature built-it, simply CTRL + click

推荐答案

根据2018年1月的更新: 您可以使用以下快捷方式在命令模式下选择并运行多个单元格:

UPDATE as per Jan 2018: You can select and run multiple cells in command mode using the below shortcuts:

1.shift + K(向上选择单元格),然后按Ctrl + Enter

1.shift+K (select the cells in an upward direction) and then Ctrl+Enter

2.shift + J(向下选择单元格),然后按Ctrl + Enter

2.shift+J (select the cells in a downward direction) and then Ctrl+Enter

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

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