> For the complete documentation index, see [llms.txt](https://datalab-docs.datacamp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://datalab-docs.datacamp.com/work/text-cell.md).

# Text cell

Use the text cell to add text to your notebook. The text cell uses Markdown syntax, which means that you can use certain formatting queues like `**` and `_` to make text bold, italics, or to add headings and lists to your text. See [here](https://www.datacamp.com/cheat-sheet/markdown-cheat-sheet-23) for a DataCamp cheat sheet with basic syntax.

The text cell can be in two modes: editing mode or viewing mode.

### Editing mode

Use this mode write your markdown cell. A toolbar appears that you can use to easily format text, as well as add hyperlinks and images. You can also just paste an image from your local filesystem or your clipboard into a text cell; the image will be uploaded to your workbook and included with the correct Markdown syntax.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FpeoNSQx5JNAqmLgaHYo8%2Fimage.png?alt=media&amp;token=a92b2255-d20e-4f51-82ff-2a387db04c0b" alt=""><figcaption><p>Text cell in editing mode</p></figcaption></figure>

### Viewing mode

This is the 'rendered' version of your markdown code: headings show up as larger titles, text formatted as bold will actually be bold, and links and images will be displayed. People with viewing access to your workbook will always see your text cells in viewing mode (since they can not edit them).

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FEm9V72bFAL4y9Yb1p9Lp%2Fimage.png?alt=media&amp;token=f101222e-ff3a-474e-8e7b-2990a21a76fd" alt=""><figcaption><p>The same text cell in viewing mode</p></figcaption></figure>

### Switching modes

To switch from viewing mode to editing mode, you can do one of the following:

* Double click on the text cell
* Click "Edit" in the cell menu
* Hit `Enter` when the cell is active.

To switch from editing mode to viewing mode, you can do one of the following:

* Click "View" in the cell menu
* Hit `Ctrl` + `Enter` when the cell is active.

###


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://datalab-docs.datacamp.com/work/text-cell.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
