microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.43k stars 29.34k forks source link

Jupyter: move cell up/down buttons #168954

Open postrational opened 3 years ago

postrational commented 3 years ago

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)

vscodebot[bot] commented 3 years ago

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

joyceerhl commented 3 years ago

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

image

danieltomasz commented 3 years ago

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

saldroubi commented 3 years ago

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

danieltomasz commented 2 years ago

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

juhap commented 2 years ago

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.

wwdok commented 2 years ago

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 ?

nathanneuro commented 2 years ago

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

YoraiLevi commented 2 years ago

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

imaspol commented 2 years ago

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

kieferrm commented 2 years ago

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.

bagcifurkan commented 2 years ago

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

claudiaregio commented 1 year ago

@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)

rebornix commented 1 year ago
image

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

roblourens commented 1 year ago

Why would they be in the extension?

jukujala commented 9 months ago

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.

kotx commented 8 months ago

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

nonoash commented 4 months ago

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