如何在GoogleColab中拆分代码单元?
使用 Jupyter Notebook 我发现拆分单元格的功能非常有用。我也想在 Google Colab 中做到这一点,但我找不到如何做到这一点。
可以做到吗?如果答案是肯定的,怎么办?
编辑 1:
安卡拉发布的解决方案似乎不再有效。作为一种解决方法,可以通过单击“工具”->“键盘快捷键”然后更改“在光标处拆分”的组合来编辑设置。我设置了CTRL + Shift + N它的工作原理。
编辑 2 (06/07/2021):
看起来旧的CTRL + M + -组合再次起作用了!。
回答
我不知道如何通过点击来实现,但在 Jupyter Lab 中,快捷方式是Ctrl + Shift + -拆分单元格。
在 Google Colab 中,他们通常将 Shift 更改为 M 以获得相同的结果。
有用!
快捷方式 Colab: Ctrl + M + -
- Yes, it works! Thanks! However I have to highlight that the pressing of the 3 buttons has to be done very quickly, if not the (CTRL+M) combo will be interpreted as (CRTL+M M) and convert the code cell in text cell