Shortcut key for changing code cell to markdown cell in jupyter notebook

点点圈 提交于 2019-12-20 10:26:26

问题


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.


回答1:


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.

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

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




回答2:


Navigate to the required cell and press the Esc key on your keyboard followed by the M key



来源:https://stackoverflow.com/questions/47787721/shortcut-key-for-changing-code-cell-to-markdown-cell-in-jupyter-notebook

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