2
votes

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

3

3 Answers

1
votes

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

1
votes

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

0
votes

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