How can I hide cell contents in Google Colaboratory?

the_cat_lady picture the_cat_lady · Mar 4, 2018 · Viewed 19k times · Source

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.

Hidden Cells example

Answer

jarvis picture jarvis · Oct 25, 2018

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.