[Python] How can I comment out multiple cells in Jupyter Ipython / JupyterLab notebook?

Discussão em 'Python' iniciado por Stack, Abril 6, 2025.

  1. Stack

    Stack Membro Participativo

    How can I comment out multiple cells in Jupyter Ipython / JupyterLab notebook? The code is in 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:

    [​IMG]

    Continue reading...

Compartilhe esta Página