> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-4/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-4/repo-sync-project/tabs-for-a-data-science-lab-project/tabs-for-pyspark-environment/notebook/notebook-page/cells-for-.ipynb-files.md).

# Cells for .ipynb Files

Learn steps to add .ipynb file and use it.

These cells contain either explanatory text (Markdown) or executable code and its output.&#x20;

* Navigate to a repo sync project.
* 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 of the .ipynb file.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FsL9xuoPV0srfGugse0xA%2Fimage.png?alt=media&amp;token=5df5aadc-4d51-476f-b83c-f55ec249b4b8" 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://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FNdE21FFyKmXNsYzsXaoH%2Fimage.png?alt=media&amp;token=46ff3ff5-5958-483e-ab98-b28e53c58e10" alt=""><figcaption></figcaption></figure>

## Saving as Notebook Notification&#x20;

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://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F3x579ay5wZhnltwB2gfg%2Fimage.png?alt=media&amp;token=4615a279-cf3b-4fd8-be63-d0c389520701" 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://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FaurkTbPSFdx5FeBcEUNF%2Fimage.png?alt=media&amp;token=6dd8ba41-9dc7-4fb2-87d5-795284b89ca4" 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-4/data-science-lab-quick-start-flow) *page to get an overview of the **Data Science Lab** module in nutshell.* ​​​
{% endhint %}
