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.
The trick is to just put the cursor where you want to split and then use ctrl-shift dash. If you try to highlight the section you want split out, as in normal Jupyter splitting, you will get the zoom behavior.
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:
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.
In VSCode version 1.57.0-insider you can:
- split cells with the hotkey:
Ctrl
+Shift
+-
See also: Merge cells in VSCode jupyter notebook?
ctrl shift -
works for VSCode (version 1.66.2) on Mac (Monterey 12.3.1)
'개발하자' 카테고리의 다른 글
SPARK_HOME 환경 변수가 설정되어 있지만 주피터 노트북에는 표시되지 않습니다. (윈도우) (0) | 2023.08.15 |
---|---|
Azure Static Web App - Terraform을 사용한 애플리케이션 설정 (0) | 2023.08.14 |
플러터 파이어베이스 구글 로그인이 작동하지 않습니다. 계정 선택 후 중지 (0) | 2023.08.13 |
플러터에서 스마트폰이나 태블릿으로 기기를 확인할 수 있나요? (0) | 2023.08.13 |
둥근 탭 바 인 플러터를 만드는 방법은 무엇인가요? (0) | 2023.08.12 |