Get startedGet started for free

Adding and editing cells

1. Adding and editing cells

Welcome to this video on adding and editing cells in DataLab! Cells are the building blocks of a notebook, allowing us to structure our work, write code, add explanations, and even create visualizations. In this lesson, we’ll explore the different types of cells available in DataLab and learn how to add, edit, and organize them to build clear and effective notebooks. Let’s get started!

2. What is a cell?

In DataLab, cells are the essential units of organization. Each cell can hold specific types of content, such as code for execution or text for explanation. By combining different types of cells, we can create a well organized interactive and informative notebook.

3. Cell types

Text cells are perfect for adding context to our notebook. Use them to help readers navigate the notebook with headers, or share conclusions. We can use markdown, a type of formatting, to control how it is displayed so we can show things like headings and tables. You can learn more about markdown in the linked guide.

4. Cell types

Code cells let us run and test code. Here's an example of a code cell that outputs a visualization.

5. Cell types

Other types of cells, like Explore cells, allow us to quickly explore a dataset. We'll learn more about these later in the course.

6. Adding and editing cells

To add a new cell, we simply click below or above existing cells. We can then edit any cell by clicking into it. We can organize notebooks by rearranging cells, and delete unwanted cells via the contextual menu.

7. Key takeaways

Remember, cells help structure our notebook and keep it organized. Whether we’re adding context with a text cell or running code in a code cell, organising your cells will make your work easy to understand and reproduce.

8. Let's practice!

Let’s practice!