Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge cells in VSCode jupyter notebook?

I found the recently updated Jupyter notebook support of VSCode very useful.

However, I can't figure out how to merge cells.

Is it possible at all? or will this feature land in the near future?

like image 341
Hoseung Choi Avatar asked Jan 19 '20 10:01

Hoseung Choi


People also ask

Can I use VS Code for Jupyter Notebook?

Jupyter Notebooks in VS Code. Jupyter (formerly IPython Notebook) is an open-source project that lets you easily combine Markdown text and executable Python source code on one canvas called a notebook. Visual Studio Code supports working with Jupyter Notebooks natively, and through Python code files.

How do you copy multiple cells in Jupyter Notebook VS Code?

Notebook 1: — Select multiple cells by holding down Shift and hit Ctrl+c to copy. Notebook 2: — Hit Esc to enter Command mode Ctrl + v to paste.

How do you select multiple cells in Jupyter Notebook?

There are commonly known keyboard shortcuts such as Ctrl + Shift + - to split the cell, Shift + M to merge multiple cells, and Shift + Down / Up to select the cells below or above the selected one.


Video Answer


1 Answers

In VSCode version 1.57.0-insider you can:

  • merge the cells with the hotkey: Alt+Windows+J

See also: How to split cell in VSCode Jupyter Notebook?

like image 193
Benjamin Ziepert Avatar answered Oct 10 '22 10:10

Benjamin Ziepert