Unhide all cells in Google Colab

Viewed 2992

Is there a way to unhide all hidden cells in a Jupyter notebook on Google Colab?

It appears that google colab hides cells automatically. Is there a way to unhide all cells? It's a pain to click each hidden cell especially when they are nested. And I sometimes inadvertently skip over hidden cells when reviewing a notebook.

4 Answers

This worked for me to expand all Colab hidden cells. Both from the menu:

  1. Edit --> Select all cells

  2. View --> Expand Sections

First, select all cells.

enter image description here

Then, right click and select 'Show code' from the context menu..

enter image description here

Also available in the command palette is 'expand all sections'.

enter image description here

Want to add additional point to 2nd Answer from @j2abro.

There is also Collapse Sections option under View.

  1. Edit --> Select all cells

  2. View --> Collapse Sections

This is very similar to the problem we generally encounter of hidden cells while we are working.

Therefore We can Select View --> Expand Sections as mentioned above in 2nd Answer.

right now you just need to click left arrow to hide all cells... right arrow to unhide all cells.

but to work you need to have a cell selected (any cell).

Related