> 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-operations/writers.md).

# Writers

The Data Science Lab provides writers tab to write the output of the data science experiments.

{% hint style="success" %}
*Check out the given illustration on how use the Writers operation inside the Notebook.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2F1aOd5fe81xHojQaeq5U0%2FPython%20Data%20Writers.mp4?alt=media&token=5bcf6dc0-2d5c-42d8-ab5f-03b7846448a0>" %}
***Using Writers inside Notebook***
{% endembed %}

* The user can run a code cell with dataset details.
* Run the cell.&#x20;

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FpbhJpDTXt8qa3FNIfxND%2Fimage.png?alt=media&amp;token=3b3a989f-a13f-43e7-b090-c82c4f5c1f2e" alt=""><figcaption></figcaption></figure>

* The preview of the dataset appears below.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2Feajba25MiLeELrU5cDAI%2Fimage.png?alt=media&amp;token=40e018bc-2d17-40d1-8c28-7b04ef93e7a8" alt=""><figcaption></figcaption></figure>

* Click the ***Secrets*** tab to get the registered DB secrets.
* Select a registered DB secret keys from the given filter option under the ***Secrets*** tab.
* Add new code cell.&#x20;
* Get the Secrets keys of the DB in it by using the checkboxes provided for the listed Secret keys.&#x20;
* Add a new code cell.
* Check the authorization of the DB by running the cell.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FG8hknmXmOAxuYp1Nf4zB%2Fimage.png?alt=media&amp;token=25bde82f-9054-46b8-a301-c94362f315ee" alt=""><figcaption></figcaption></figure>

* Add a new code cell.
* Open the Writers section.
* Use the given checkbox to select a driver type for the writers.
* The code get added to the newly added cell.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FesyKycjtMZl3zFmnb2M6%2Fimage.png?alt=media&amp;token=e3e6f1f8-98b8-43fc-935e-b6e716587937" alt=""><figcaption></figcaption></figure>

* Provide the Secret values for the required information of the writer such as  Username, Password, Host, Port.&#x20;

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FIdZkUz06HUlQcM4Qnf3j%2Fimage.png?alt=media&amp;token=33aa6a06-a62d-4968-9020-423ff8c3c3a4" alt=""><figcaption></figcaption></figure>

* Also provide the authenticated database, table name and data frame to write the chosen data.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FWkFC15fwQjxQR5h1JUl3%2Fimage.png?alt=media&amp;token=286dd171-efbd-4fa2-8f10-67717fe2102e" alt=""><figcaption></figcaption></figure>

* Run the code cell with the modified databased details.
* A message appears below stating that the DataFrame has been written to the database. The data gets written to the specified database.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FNJ1HfrUpH5r9QfIU1otc%2Fimage.png?alt=media&amp;token=372fc1a6-5d8b-472f-9fda-74f3eafafc5d" 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.*&#x20;
{% endhint %}
