'Move the cell in jupyter notebook up and down

I have a cell (cell 39), I wish to move up to the top of cell 40. I know I could grab and drag to the place. However, I see that in official document, you could move it with the vertical bar on the left. However, I does not have one, and could not find the setting to make it display.

Demonstration in Visual Code.

Jupyter Notebook in chrome version has a similar botton for this function Jupyter Notebook web version.



Solution 1:[1]

According to https://github.com/microsoft/vscode-jupyter/issues/6812 you can use alt(option)+arrow up/down to move the selected cell.

Or, use Command Palette with Notebook: Move

https://user-images.githubusercontent.com/30305945/127107696-af3caf2a-1757-44d0-a619-ae4e82c03037.png

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1