# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
