text cell in jupyter notebook code example
Example 1: jupyter change text cell to code
# press on the blank space in front of the cell, then press y
Example 2: jupyter notebook comment a cell
Mark the content of the cell and press Ctrl+ /.
It will comment out all lines in that cell.
Repeat the same steps to uncomment the lines of your cell.