Reputation: 668
I was wondering, if there is a PRO way of commenting/removing multiline # comments in JupyterNotebooks.
# line1
# line2
# line3
Something like SHIFT + " for adding triple quotes.
Upvotes: 9
Views: 32194
Reputation: 9562
Just switch to US keyboard while coding. You only need to know the keys by heart. Then, you can press the US shortcut Ctrl
+/
on this "US keyboard", it should be the next button left to the right shift
button. Your country's keyboard will not play a role anymore.
Upvotes: 0
Reputation: 1
simply we can use the control + / (back slash) button to we can comment multiple lines at a time.
Upvotes: 0
Reputation: 11
For those with a Portuguese keyboard and Windows operating system, CTRL + ~
comments multiple lines.
Upvotes: 1
Reputation: 85613
For the big bunch of people that does not use an english keyboard, probably the adequate keys are in other place. In the case of a Spanish Keyboard, I can comment/uncomment lines using "Ctrl + }"
Upvotes: 7
Reputation: 157
CTRL+/ for comment and uncomment multiple lines you can press 'h' anywhere in command mode, you can find all the shortcuts of jupyter.
Upvotes: 13