Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to split cell in VSCode Jupyter Notebook?

How can a Jupyter notebook cell be split in VSCode? I.e., how to split a single cell with multiple lines into two cells with the top lines (above the cursor) in one cell and the bottom lines (below the cursor) in another cell?

I've tried Cntrl Shift - using the Daily Insiders Python Extension, but it doesn't seem to do anything.

like image 981
rickhg12hs Avatar asked Nov 04 '20 01:11

rickhg12hs


People also ask

How do you move cells in Jupyter Notebook VSCode?

The selected code cell can be changed using the mouse, the up/down arrow keys on the keyboard, and the J (down) and K (up) keys. To use the keyboard, the cell must be in command mode.


1 Answers

The Ctrl Shift - is for zooming out the display by default in VS Code. This feature has been put for a long time in Github, and the following is the request:

Jupyter Split Cell and Select Multiple Cells command

This issue is still open, although there's Notebooks are getting revamped! existed, it's for VS Code Insiders, not our current using VS Code. Maybe the production group can improve it in the future.

like image 108
Molly Wang-MSFT Avatar answered Oct 06 '22 22:10

Molly Wang-MSFT