在Jupyter Notebook中将代码单元更改为减价单元的快捷键 [英] Shortcut key for changing code cell to markdown cell in jupyter notebook

查看:110
本文介绍了在Jupyter Notebook中将代码单元更改为减价单元的快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有点傻,但是,有没有将代码单元更改为降价单元的快捷键.要放置降价单元格,我必须插入一个单元格,然后转到工具栏菜单(位于主菜单栏下方),然后选择降价而不是代码.

Kind of silly but, is there a shortcut key to change a code cell to markdown cell. To place a markdown cell, I have to insert a cell, then go to the toolbar menu(below the main menu bar) and then select markdown instead of code.

推荐答案

在命令模式下按 M (所选单元格周围的突出显示应该是蓝色,而不是绿色),使用 Esc 切换到命令模式,然后按 Enter 切换回编辑模式.

Press M whilst in command mode (highlight around the selected cell should be blue, not green), use Esc to switch to command mode and Enter to switch back to edit mode.

因此,如果您正在编辑单元格,则将单元格更改为降价单元格的按键是 Esc M Enter .

So, if you're editing a cell, the key presses to change the cell to a markdown cell are Esc, M, Enter.

您可以通过按工具栏中的键盘图标查找所有Jupyter笔记本键盘命令.您还可以通过转到Help > Edit Keyboard Shortcuts

You can look up all the Jupyter notebook keyboard commands by pressing the keyboard icon in the toolbar. You can also edit your keyboard shortcuts by going to Help > Edit Keyboard Shortcuts

这篇关于在Jupyter Notebook中将代码单元更改为减价单元的快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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