> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/7.6/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/7.6/data-science-lab/project/various-tabs-to-work-with/utility.md).

# Utility

This tab allows to create and list the python scripts (.py files) that can be imported to your notebook.

{% hint style="success" %}
Check out this walk-through on how to import a Utility scrip.
{% endhint %}

![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FHjwf5IOIGTLblg9C7qYt%2FUtility%20script.gif?alt=media\&token=cf80b34d-20c4-4aa5-b53b-82a74884f7d6)

### Importing a Utility Script

* Navigate to the ***Utility*** tab for a Project.
* Click the ***Add Script*** option.

![The Add Script option provided for the Utility tab](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2F8jZjBwFjOoKEI0Gkg2NW%2Fimage.png?alt=media\&token=2d3ec0b6-216a-4816-b9d0-8b7d9a83d003)

* The ***Add utility script*** page opens.
* Provide the following information:
  * Utility Name
  * Utility Description
  * Utility Script
* Click the ***Save*** option.

&#x20;    &#x20;

![The Add Utility Script form to provide the required details](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FePHhqTdBleTeL5FaUgA9%2Fimage.png?alt=media\&token=59c8632a-dbac-49b4-8521-ded4ba2b34f4)

* A confirmation message appears.
* The newly created Utility Script gets added to the Utility list.

![The newly imported Utility script lists under the Utility list](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FfPQnQ13OcIQ2AlunetCW%2Fimage.png?alt=media\&token=c6bf5b93-7f6b-4274-a3f1-7ec89c74f5a2)

### &#x20;Importing the Utility Script inside a Notebook

* Copy a utility file using the Utility list.
* Navigate to the Notebook tab.

![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2F8rirr43Qqhc4EnOiXH0c%2Fimage.png?alt=media\&token=53f7ed5d-ec7f-4c26-abaf-24cd1b0098e4)

* Create a Notebook or open an existing Notebook.
* Add a ***Code*** ***cell***.
* Write code to import data with specific class.
* Provide the Utility script as the resource to get data.

![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FGS7k0EUETSIqhCvdxF3D%2Fimage.png?alt=media\&token=2865d2a0-314f-43d0-b2c8-cc0da2ec1167)

* Specify the variables to get the class and get the data in the next code cell.

![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FTcYRWcLIASrx5VJgrAC4%2Fimage.png?alt=media\&token=a2d8027d-6bd4-409e-acbb-7d61c1a8ff0b)

* Provide print function to see the data.
* Run all the cells.
* You can get the output below.  &#x20;

![](https://4128708524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FHSRaRZRR0LjMzKF8GU24%2Fimage.png?alt=media\&token=c0577b99-1e37-41f4-b55a-a9ef88ef67d5)

&#x20;
