0

I would like to comment out multiple Cell Blocks at once (not multiple lines of code at once) in Google Colab, like the 4 separate Cell Blocks below: enter image description here

I tried Ctrl / and it didn't work, I think that only works for multiple lines of code within 1 cell. I would like to essentially do Ctrl / on Multiple cells.

(And obviously if I only had these 4 cells to comment out, I would just manually go Ctrl / on them all. Except I have 50 cells that I need to comment out currently). Thank you for any help!

Katsu
  • 8,479
  • 3
  • 15
  • 16

1 Answers1

0

It seems that as you say, you can't comment code if it is in different cells, this old similar question contains an answer with an "algorithm" to do what you want but I doubt you can go back from there, if you want.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 06 '23 at 18:04