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

后端 未结 4 1441
一个人的身影
一个人的身影 2021-01-31 13:28

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

相关标签:
4条回答
  • 2021-01-31 13:44

    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

    0 讨论(0)
  • 2021-01-31 13:51

    If you're using vim-bindings, the shortcut changes to Ctrl+2, also in command mode as in @Louise Davies answer.

    0 讨论(0)
  • 2021-01-31 13:52

    check help on the menu, there is keyboard shortcuts

    select the code cell, press "esc + m ",and it will be a markdown cell. moreover, from markdown cell to code cell, press " esc + y ".

    0 讨论(0)
  • 2021-01-31 13:56

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

    0 讨论(0)
提交回复
热议问题