# Notebook Operations

This section aims at describing the following operations for a Notebook:

* [**Save Model & Load Model** ](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)**:** You can train, save, and load the models (Sklearn, Keras/TensorFlow, PyTorch)
* [**Predict**](https://docs.bdb.ai/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/predict)**:** You can predict the model outputs inside the notebook.
* [**Save Artifacts**](https://docs.bdb.ai/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/save-artifacts)**:** You can save the plots and datasets as Artifacts inside a Notebook.&#x20;
* [<mark style="color:blue;">**Find and Replace**</mark>](https://docs.bdb.ai/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/find-and-replace): You can search for a specific text inside your code and replace it if needed.
* [<mark style="color:blue;">**Secrets**</mark>](https://docs.bdb.ai/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/secrets): You can generate Environment Variables to save your confidential information from getting exposed.
* [<mark style="color:blue;">**Algorithms**</mark>](https://docs.bdb.ai/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/algorithms): You can get steps on how to do Algorithm Settings and Project level access to use Algorithms inside Notebook.
* [**Transforms**](https://docs.bdb.ai/bdb-documentation/data-science-lab/various-tabs-to-work-with/notebook/notebook-page/notebook-operations/transforms): Save and load models with transform script, register them or publish them as an API through DS Lab module.

{% hint style="info" %} <mark style="color:green;">Please Note:</mark> *The given Notebook operations should be performed in this sequence only:*

**Save Model -> Load Model -> Predict -> Save Artifacts**
{% endhint %}

## **Other Notebook Operations**

The Notebook operations icons (as provided below) help to apply various actions to the code when clicked. They are provided on the top right side of the Notebook page.

<table><thead><tr><th width="150">Icon</th><th width="150">Icon Name</th><th>Action</th></tr></thead><tbody><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2Fhyxnz7VGUIQrGnzoEEfa%2Fimage.png?alt=media&#x26;token=907f62b4-bc25-4bab-9302-022afed47eab" alt="" data-size="line"></td><td>Add Pre cell</td><td>Adds a code cell before the first cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FOET5NP5IYJo1hAvoW5pl%2Fimage.png?alt=media&#x26;token=e03b10c9-ecf8-47e2-86cb-5c17ae526ac1" alt="" data-size="line"></td><td>Save</td><td>Saves the Notebook updates.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FTFrksKdwsru3BUl7CdgJ%2Fimage.png?alt=media&#x26;token=e0ac3371-c42f-414b-ab78-f536f208b1ec" alt="" data-size="line"></td><td>Delete cell</td><td>Removes the selected cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FFBCooiP38rwnNr0X87hx%2Fimage.png?alt=media&#x26;token=3210cb8d-ff3e-4f29-9c2a-f5fc6c62e184" alt="" data-size="line"></td><td>Undo Delete cell</td><td>Reverts the Deleted cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FG0qyq2CeO179jc1Rcfw3%2Fimage.png?alt=media&#x26;token=fcc58b1a-675c-48b6-9993-79534f972f33" alt="" data-size="line"></td><td>Cut cell</td><td>Cuts the code from a specific cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2F4wSdTCt9Ph0jNcSpQUGk%2Fimage.png?alt=media&#x26;token=c3fca3ce-9ae3-4868-933b-03091f48980e" alt="" data-size="line"></td><td>Copy cell</td><td>Copies the code from a specific cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2Fs6YY6s4QRnKNKf8swV9y%2Fimage.png?alt=media&#x26;token=4611a253-e1f4-483e-b337-d5ecaea38f33" alt="" data-size="line"></td><td>Paste cell</td><td>Pastes the cut or copied code to the selected cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FzVsPpZym9SyCVRN7yNe7%2Fimage.png?alt=media&#x26;token=b2c2f690-3878-407b-9e1b-409e84d8bacb" alt="" data-size="line"></td><td>Run Current cell</td><td>Runs code given for a specific cell.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FRnIr7nxqNcmkE0a8A4st%2Fimage.png?alt=media&#x26;token=ea0eba82-2c7c-49a3-a12f-decd7f4e77c0" alt="" data-size="line"></td><td>Run all cell</td><td>Runs the codes for all the cells.</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FP7J7aXxNlkBjxATLb54h%2Fimage.png?alt=media&#x26;token=f584c4e5-e461-44ac-bf18-4d0a7988216b" alt="" data-size="line"></td><td>Interrupt cell</td><td>Stops/Interrupts the running of selected code(s).</td></tr><tr><td><img src="https://972575688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYq1HgffNfbnIMWPu1D5%2Fuploads%2FoAill3iLRIGS8LNZGlOC%2Fimage.png?alt=media&#x26;token=b64de998-487e-4fc4-b59b-739d5592476d" alt="" data-size="line"></td><td>Shutdown</td><td>Stops the Kernel/Disconnects the instance and allocated resources.</td></tr></tbody></table>
