Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to comment out multiple lines in Jupyter Ipython notebook on Mac with French keyboard layout (without numpad)?

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

like image 262
Jean Monet Avatar asked Oct 27 '25 03:10

Jean Monet


2 Answers

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

like image 95
AjanO Avatar answered Oct 28 '25 15:10

AjanO


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

like image 41
B Douchet Avatar answered Oct 28 '25 15:10

B Douchet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!