Search code examples
keyboard-shortcutsjupyter-notebook

Cmd key not working in Jupyter for iPython


I'm running an iPython notebook using the Jupyter notebook interface on my Mac using Chrome. I'd like to be able to delete a cell, or a bunch of cells. The keyboard shortcut is Cmd + D, but when I press that it runs the Chrome "Add Bookmark" shortcut; a similar thing happens on Safari.

How can I fix this? (Not just for Delete, but for the other Cmd + keyboard shortcuts in the Jupyter interface).


Solution

  • The (command) in jupyter doesnt mean the command button in mac or ctrl button in windows. it means "command" mode.

    You can enter the command mode either by pressing "Esc" or "ctrl-M"(when a cell is in focus) and then press "D,D" i.e Press D twice, to delete the cell.