> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-science-lab-3/project/tabs-for-a-data-science-lab-project/tabs-for-tensorflow-and-pytorch-environment/notebook/notebook-page/notebook-cells.md).

# Notebook Cells

Learn steps to add Notebook Cells and use them.

A Notebook under the Data Science Lab module is a collection of cells. These cells contain either explanatory text (Markdown) or executable code and its output.&#x20;

* By default, a ***Code cell*** is added in a newly created Notebook.
* The user can also use the ***Add pre-cell*** icon to add a new code cell in the beginning to the Notebook.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2Fw9phwfnui4VOPrz42nIK%2Fimage.png?alt=media&amp;token=46b0283b-58ac-44c1-9e6c-4a92150294ec" alt=""><figcaption></figcaption></figure>

You can add new cells by using the **+Code** , **+Markdown,** and **+Assist** options given at the bottom of the cell.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FQiPSMlxEZbmeKpB33ycm%2Fimage.png?alt=media&amp;token=dd709604-bb57-4358-9d3b-48470237746f" alt=""><figcaption></figcaption></figure>

## Saving as Notebook Notification

A dialog box opens each time to save the recent changes from the user while closing the selected opened Notebook at any given time. The user can click the ***Yes*** option to save the Notebook.

* Navigate to an opened Notebook and click the close icon provided to close the Notebook infrastructure.
* The Save as Notebook dialog box opens.
* Click the Yes option.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FmDomgscCYkRR3ht1QvGC%2Fimage.png?alt=media&amp;token=6c8be0a6-2013-4fcd-8304-85a35a0f6d72" alt=""><figcaption><p><em><strong>Save as Notebook dialog box</strong></em></p></figcaption></figure>

* The current Notebook gets closed and a notification message appears to assure the user that all the recent changes are saved in it.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FxTBPzb2iPjAUh3U7jS7n%2Fimage.png?alt=media&amp;token=cdf4d701-b952-4c23-9f01-c53f61aa7870" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:green;">Please Note:</mark> *Refer the* [***Data Science Lab Quick Start Flow*** ](https://docs.bdb.ai/data-science-lab-3/data-science-lab-quick-start-flow)*page to get an overview of the **Data Science Lab** module in nutshell.* ​​​
{% endhint %}
