4

I'm trying to select and comment # multiple lines using Jupyter Notebook on Mac with French keyboard layout and no numpad.

To type the slash (/) on this keyboard, the shortcut is Shift + :

When trying to comment lines on Jupyter:

  • with Ctrl + Shift + : it doesn't work
  • Neither Ctrl + #
  • Or Cmd + :
  • or Cmd + Shift + :

However on a Chromebook with French keyboard layout I'm able to do Cmd (search key) + : and it works fine.

I'm aware of this question: How do I comment out multiple lines in Jupyter Ipython notebook? but wondering if a keyboard shortcut solution has been found for Mac with French keyboard layout and no numpad?

EDIT: open issue on Github: https://github.com/jupyter/notebook/issues/3753

Jean Monet
  • 2,075
  • 15
  • 25

5 Answers5

3

In my case, Ctrl+ ยง worked (with Switzerland keyboard no numeric keypad)

B Douchet
  • 970
  • 1
  • 9
  • 20
1

@Jean: the jupyter notebook shortcut may be overwritten by the Mac View menu shortcut for Hide bar.

AjanO
  • 433
  • 1
  • 9
  • 20
0

On a Windows 10 laptop (no numeric keypad) with portuguese layout the combination is Ctrl + ~ to comment/uncomment a multiple line selection

Manuel Alves
  • 3,885
  • 2
  • 30
  • 24
0

MacOs, QWERTY Keyboard (IT): Ctrl + .

GianAnge
  • 593
  • 3
  • 12
0

On MacOS with Spanish keyboard CTRL + - works for me.

Strozzascotte
  • 141
  • 1
  • 6