简体   繁体   English

如何在 VSCode Jupyter Notebook 中拆分单元格?

[英]How to split cell in VSCode Jupyter Notebook?

How can a Jupyter notebook cell be split in VSCode?如何在 VSCode 中拆分 Jupyter notebook 单元格? Ie, 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.我试过Cntrl Shift -使用 Daily Insiders Python 扩展,但它似乎没有做任何事情。

The Ctrl Shift - is for zooming out the display by default in VS Code. Ctrl Shift -用于在 VS Code 中默认zooming out the display This feature has been put for a long time in Github, and the following is the request:这个功能在Github已经放很久了,请求如下:

Jupyter Split Cell and Select Multiple Cells command Jupyter 拆分单元格和选择多个单元格命令

This issue is still open, although there's Notebooks are getting revamped!这个问题仍然悬而未决,尽管Notebooks 正在改进! existed, it's for VS Code Insiders , not our current using VS Code .存在,它是针对VS Code Insiders 的,而不是我们目前使用的VS Code Maybe the production group can improve it in the future.也许生产组以后可以改进它。

In VSCode version 1.57.0-insider you can:在 VSCode 1.57.0-insider 版本中,您可以:

  • split cells with the hotkey: Ctrl + Shift + -使用热键拆分单元格: Ctrl + Shift + -

See also: Merge cells in VSCode jupyter notebook?另请参阅: 合并 VSCode jupyter 笔记本中的单元格?

ctrl shift - works for VSCode (version 1.66.2) on Mac (Monterey 12.3.1) ctrl shift -适用于 Mac (Monterey 12.3.1) 上的 VSCode(版本 1.66.2)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM