# 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="/files/QRnU3LjKSwFL8Zf75Tt8" alt=""><figcaption><p>Hiding the code portion of a cell</p></figcaption></figure>

<figure><img src="/files/qj31sp6goIbI3rLTlYwr" 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="/files/ejjxd8tFyAsmkXWy9zaF" alt=""><figcaption><p>Hiding the output portion of a cell</p></figcaption></figure>

<figure><img src="/files/aqifKUWJYDKdV7tcmRAo" 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="/files/PKIEec3f2Evpg5Uhj9kD" alt=""><figcaption><p>Result of hiding the code and output portion of a cell</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://datalab-docs.datacamp.com/work/hiding-and-showing-cells.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
