> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/bdb-documentation/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/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/turn-your-script-into-a-model.md).

# Turn your Script into a  Model

{% hint style="success" %}
*Check-out the walk-through on how to save and load a DSL Model.*
{% endhint %}

![Saving and loading a model](/files/pecrjBe8DXwh4U7QuILZ)

Once the Notebook script is executed successfully, the users can save them as a model. The saved model can be loaded into the Notebook.

## Saving a DSL Model

* Navigate to a Notebook.
* Write code using the following sequence:
  * Read DataFrame
  * Define test and train data
  * Create a model
* Execute the script.

&#x20;    &#x20;

![Sample Script for a Data Science Model](/files/U2fpMr6AMgElBGU9leRG)

* Get a new cell.
* Give a model name to specify the model.
* Execute the cell.
* After the code gets executed, click the ***Save Model*** notebook in a new cell.
* The saved model gets listed under the ***Models*** list.

![Specify a DSL Model by giving a name](/files/Pj4kJWCRPJ5dEDNoy6SG)

## Loading a DSL Model

* Click on a new cell and select the model by using the given checkbox to load it.
* The model gets loaded into a new cell.

![Loading a saved DSL Model](/files/PpPev1rq1VmH95WRwUZV)
