Skip to content
Advertisement

How to move Jupyter notebook cells up/down using keyboard shortcut?

Anyone knows keyboard shortcut to move cells up or down in Jupyter notebook? Cannot find the shortcut, any clues?

Advertisement

Answer

Further to honeybadger’s response, you can see when you open up the Edit Command Mode shortcuts dialog box that there are no shortcuts defined for moving a cell up and down, by default:

screenshot

I simply typed in my preferred combination Ctrl-Shift-Down and Ctrl-Shift-Up in the ‘add shortcut’ field, and pressed Enter. This is the same in Windows/Mac.

Cheers!

Advertisement