如何注释掉 Jupyter Ipython / JupyterLab 笔记本中的多个单元格?代码是Python 语言。
The keyboard shortcuts Ctrl + / on Microsoft Windows and Cmd + / on Mac OS X only work if the selected code is within one cell. However, if I select several cells, then these keyboard shortcut don't work anymore.
Selecting several cells can be done by clicking on the margin of cell, then holding CTRL or SHIFT, and clicking on the margin of another cell:
正如评论中所述,您可以:
a) 将它们全部转换为 markdown (选择并按 m)
b) 逐个单元格选择所有文本 (control+a),然后 (control + /) 进行注释
c) 将所有单元格合并为一个,然后进行注释。不幸的是,我不认为这个选项是可逆的
如果有人知道另一种选择,我很高兴知道!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)