This notebook is part of the nbsphinx documentation:

Hidden Cells

You can remove cells from the HTML/LaTeX output by adding this to the cell metadata:

"nbsphinx": "hidden"

Hidden cells are still executed but removed afterwards.

For example, the following hidden cell defines the variable answer.

In [ ]:
answer = 6 * 7

This is the cell after the hidden cell. Although the previous cell is not visible, its result is still available:

In [ ]:

Don't overuse this, because it may make it harder to follow what's going on in your notebook.

Also Markdown cells can be hidden. The following cell is hidden.

I am a hidden Markdown cell!

This is the cell after the hidden cell.