Bruce Bartlett
Bruce Bartlett

Reputation: 223

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).

Upvotes: 6

Views: 4279

Answers (2)

Gonzalo Garcia
Gonzalo Garcia

Reputation: 6632

In addition to what @Rohit answered.

I was having an issue where Cmd + / and Cmd + a weren't working (to comment a line and select all respectively) in Jupyter Notebook for AWS Sagemaker.

My solution was to restart Safari and now it's working properly.

Upvotes: 1

Rohit Nandi
Rohit Nandi

Reputation: 878

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.

Upvotes: 9

Related Questions