Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a shortcut for deleting a line in Jupyter's edit mode?

In Jupyter's edit mode, is there a shortcut for deleting a line of text? Something like Ctrl + L in Visual Studio?

like image 270
DharmaTurtle Avatar asked Apr 13 '18 05:04

DharmaTurtle


Video Answer


2 Answers

Shift + Delete or Ctrl + D or both, depending on version.

Ctrl + D is listed under HelpKeyboard Shortcuts in the notebook menu, but Shift + Delete seems to work despite being undocumented.

like image 154
DharmaTurtle Avatar answered Nov 15 '22 12:11

DharmaTurtle


As for Jupyter notebook servion version 6.0.2 the command Ctrl + D works for me. This shortcut is listed in the shortcut documentation, that can be found under HelpKeyboard Shortcuts.

If you want to edit the shortcuts you can do this here: HelpEdit Keyboard Shortcuts

like image 45
Hendrik Avatar answered Nov 15 '22 11:11

Hendrik