vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Jupyter: move cell up/down buttons

Open postrational opened this issue 4 years ago • 18 comments

In the Jupyter plugin, I cannot find "Move cell up" and "Move cell down" buttons.

Where I would expect to see them, I find "execute cell and below/above" buttons, which are confusing and in my opinion unnecessary.

Drag-and-drop reordering is nice, but when you have tall cells with long output, it's much harder to use than clicking a button.

Edit: also, a "Run next cell" button would be nice in the top interface, so we can run 3 cells by clicking it 3 times, instead of pecking with the mouse for the next "Execute cell". (I am aware of keyboard shortcut)

postrational avatar Jul 24 '21 10:07 postrational

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

vscodebot[bot] avatar Jul 24 '21 10:07 vscodebot[bot]

Thanks for the request. As a workaround for now, you might find the commands to move cells helpful:

image

joyceerhl avatar Jul 27 '21 06:07 joyceerhl

I would also like to add my vote for adding this feature

danieltomasz avatar Oct 16 '21 10:10 danieltomasz

I agree. Please add a way to drag a cell up to down.

saldroubi avatar Oct 19 '21 21:10 saldroubi

Alt (option)+ DOWN/UP has often a problem with focusing on cell - it moves line up/down instead of a cell, is not reliable, I need to use a command launcher, its not good

danieltomasz avatar Dec 06 '21 21:12 danieltomasz

You can select the cell by clicking on the left, outside the text entry area. You can also select multiple cells by using either ctrl or shift (Windows) while selecting them.

You can either use the shortcut to move selected cells or drag them.

juhap avatar Dec 27 '21 12:12 juhap

You can select the cell by clicking on the left, outside the text entry area. You can also select multiple cells by using either ctrl or shift (Windows) while selecting them.

You can either use the shortcut to move selected cells or drag them.

Yes, i found if i put my mouse on the left of cell outside the text entry area, and click left mouse to activate current cell, then i can drag and drop this cell, but for those who are new to VScode jupyter notebook, maybe they don't know this. You say we can use shortcut to do this, but how to set the shortcut ?

wwdok avatar Jan 29 '22 02:01 wwdok

I would prefer up/down buttons instead of drag. Drag is tricky with long notebooks & large cells.

nathanneuro avatar Apr 19 '22 23:04 nathanneuro

Alt (option)+ DOWN/UP has often a problem with focusing on cell - it moves line up/down instead of a cell, is not reliable, I need to use a command launcher, its not good

Good to know this even exists. it wasn't intuitive at all.

Still miss the buttons from colab

YoraiLevi avatar Jul 21 '22 01:07 YoraiLevi

The shortcut works only for one cell, although the command palette workaround works for multiple chosen cells. Drag is functioning, but jumping over multiple cells is complicated: it won't scroll sometimes. Version : 1.69.2 (system setup) Validation : 3b889b090b5ad5793f524b5d1d39fda662b96a2a Date : 2022-07-18T17:05:44.765Z Electron : 18.3.5 Chromium: 100.0.4896.160 Node.js : 16.13.2 V8 : 10.0.139.17-electron.0 Système d’exploitation : Windows_NT ia32 10.0.22000

imaspol avatar Jul 28 '22 09:07 imaspol

I think the way to address the issue is to provide configurability of the cell toolbar, particularly given that we try to make all toolbars more easily configurable across VS Code.

kieferrm avatar Aug 17 '22 01:08 kieferrm

Alt + Up/down seems OK for me. Additionally, it would be great to add to the cell toolbar.

bagcifurkan avatar Nov 09 '22 10:11 bagcifurkan

@roblourens Since we closed other issue, I figured i'd add that Jupyter has the up/down arrows in their main toolbar as opposed to cell toolbar if you thought that would solve the too-many-buttons-on-cell-toolbar problem. (But they also have their main toolbar is icon only by default as opposed to icon + text)

claudiaregio avatar Dec 13 '22 16:12 claudiaregio

image

Since we allow users to hide buttons on the toolbar, I'm in favor of contributing these commands in Jupyter.

rebornix avatar Dec 30 '22 18:12 rebornix

Why would they be in the extension?

roblourens avatar Dec 30 '22 20:12 roblourens

I have tried 30 mins to move a cell at a notebook, no success so far. This feature is desperately needed for better very basic UX.

jukujala avatar Feb 14 '24 11:02 jukujala

Desperately need this. Dragging isn't very visible with my color theme for some reason, and just doesn't work most of the time.

kotx avatar Mar 19 '24 19:03 kotx

Would be nice, sometimes the drag and drop isn't working because the blue horizontal line isn't appearing, 2 buttons on the tool bar close to the others run, run all etc... would be nice

nonoash avatar Jun 30 '24 07:06 nonoash