3

Is there a keyboard shortcut to select a single line (current line, where the marker is) in Jupyter lab notebooks?

2 Answers 2

5

I am assuming here that you need the selected line to be cut, copy, or paste. Jupyter Notebook like vscode will automatically select the entire line, when no text selected. All you have to do is keep your cursor somewhere on the line and do the usual Ctrl+c, Ctrl+v commands.

This is not very intuitive because the entire line is not highlighted, but it serves the purpose.

3

With cursor in the line press Home then Shift+End or End then Shift+Home

1
  • Shift+End works great for me, thank you! Commented Feb 10, 2023 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.