I'm working through a tutorial in Google Colaboratory, and the author has handily hidden some of the solutions cells. When you click the hidden cell, it expands and becomes visible. How can I hide the cells?
An example is in this tutorial: Creating and Manipulating Tensors.
Right click on the cell and select the 'Hide form' menu.
Hide cell inputs If you add the tag hide-input to a cell, then Jupyter Book will hide the cell but display the outputs.
With multiple cells selected: Press Shift + M to merge your selection. To split the active cell at the cursor, press Ctrl + Shift + - in edit mode. You can also click and Shift + Click in the margin to the left of your cells to select them.
You can select the lines of code and press ( Ctrl + / ) to comment or uncomment your selected lines of code.
None of the other answers worked for me. You can collapse cells by adding this to the top of the cell "#@title" and then double clicking on the white space that appears to the right of it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With