# Hiding and showing cells

You can hide and show the code and/or output of one or all cells in a notebook. This allows you to pull the attention towards the insights that matter, keeping all of your data cleaning and theming plumbing out of sight. The code and output of a cell that you hide won’t be visible in [reader mode](https://workspace-docs.datacamp.com/work/reader-mode).

To hide the code portion of a code or SQL cell, click the 'eye' icon that appears next to the code:

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FQoX2lefinO4x8WmRM1H5%2Fcode.png?alt=media&#x26;token=72662b17-b584-4dec-a692-88c19085d41c" alt=""><figcaption><p>Hiding the code portion of a cell</p></figcaption></figure>

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2F0ri5y97LzZgH7GeiNrdt%2Fimage.png?alt=media&#x26;token=cd2f43de-7510-4f69-bcb0-cd8a143dca85" alt=""><figcaption><p>Result of hiding the code portion of a cell</p></figcaption></figure>

To hide the output portion of a cell, click the 'eye' icon that appears next to the output.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2Fix6jWWs3RvSVVaSFHji9%2Foutput.png?alt=media&#x26;token=cf6c563a-2128-45cc-8388-19d9cd49925d" alt=""><figcaption><p>Hiding the output portion of a cell</p></figcaption></figure>

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FDPuYlgIKueMu73riHSft%2Fimage.png?alt=media&#x26;token=04ded63c-afd5-459b-b684-9df189fb8449" alt=""><figcaption><p>Result of hiding the output portion of a cell</p></figcaption></figure>

You can also hide both the code and the output, which collapses the entire cell into a line. Multiple adjacent hidden cells will also show up as one line.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FkDjYWT7HVg925bArHYKI%2Fimage.png?alt=media&#x26;token=d7d0f004-e473-4252-9da7-e95633080c6c" alt=""><figcaption><p>Result of hiding the code and output portion of a cell</p></figcaption></figure>
