> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-4/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-4/repo-sync-project/tabs-for-a-data-science-lab-project/tabs-for-pyspark-environment/notebook/notebook-page/file-options/register.md).

# Register

{% hint style="success" %}
*Check out the given illustration on how to register a DSL Notebook as a Job.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FH0AWWeVETGKSqggNEhxa%2FRegistering%20a%20Notebook%20as%20Job%20PySpark%20RSP.mp4?alt=media&token=928ef657-6d3c-4279-a558-a98e2f566734>" %}
***Registering an .ipynb file as a Job***
{% endembed %}

## Registering an .ipynb File

The user can register a Notebook script as a Job by using this functionality.&#x20;

* Navigate to the Notebook tab of a Repo Sync Project.
* Click the ellipsis icon for a .ipynb file.&#x20;

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FfAZ0gFKpTWetecBkn1d9%2Fimage.png?alt=media&amp;token=123ae20a-ad85-4e5f-abab-dcbcda8b7bce" alt=""><figcaption></figcaption></figure>

* Click the ***Register*** option for the selected .ipynb file.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F6suAet3T7nZeb3sNlXvR%2Fimage.png?alt=media&amp;token=6c1dc176-ea81-4baa-aebb-fa186b3cf376" alt=""><figcaption></figcaption></figure>

* The ***Register as Job*** page opens.
* Select script by using the checkbox.
* Click the ***Next*** option.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FKQonkoeNm080BBcwoM6Q%2Fimage.png?alt=media&amp;token=ba286888-1da4-43f9-aa34-6e6262d8bfea" alt=""><figcaption></figcaption></figure>

* The next page opens to Validate the Script. Click the ***Validate*** icon.
* A notification message appears to ensure that the script is valid.
* Once the script gets validated, the ***Next*** option gets enabled. Click the ***Next*** option.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2Fa3uz9X6nf4o9dIVM82IK%2Fimage.png?alt=media&amp;token=03162cf3-bd59-4940-8bfd-50775193df82" alt=""><figcaption></figcaption></figure>

* Provide the following information:
  * Enter scheduler name: Provide a name for the Registered Job.
  * Scheduler description: Provide description for the scheduler.
  * Start function: Select a function from the drop-down menu.
  * Job basinfo: Select an option from the drop-down menu.
* Docker Config
  * Choose an option for Limit out of Low, Medium, and High
  * Request - CPU and Memory limit are displayed.
* Click the ***Save*** option to register the selected .ipynb file as a Job.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FSmTcV2AcfqZWwiLWmo0m%2Fimage.png?alt=media&amp;token=a28993d2-c67f-4e9b-add3-5440b06b05b4" alt=""><figcaption></figcaption></figure>

* A notification message appears.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FxnCyVUHvc43MIb2SvwN2%2Fimage.png?alt=media&amp;token=8ea63eae-33e2-400a-9b28-37c52333ef4b" alt=""><figcaption></figcaption></figure>

* Navigate to the ***List Jobs*** page within the Data Pipeline module.
* The recently registered DS Notebook gets listed with the same name that was chosen as the Scheduler name for it.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FvapRJVfqJJlqdyk5FLSB%2Fimage.png?alt=media&amp;token=ee4a5391-c3ba-4294-909f-e380dde69d62" alt=""><figcaption></figcaption></figure>

## Re-Registering an .ipynb File

This option appears for a .ipynb file that has been registered before.

* Select Register option for a .ipynb file that has been registered before.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FLE3T0Nz6fW1fsZFa1FS9%2Fimage.png?alt=media&amp;token=61b9881b-f145-4b1a-b90f-914689201b0d" alt=""><figcaption></figcaption></figure>

* The  ***Register as Job*** page opens displaying the ***Re-Register*** and ***Register*** as New options.
* Select the ***Re-Register*** option by using the checkbox.
* Select a version by using a checkbox.
* Click the ***Next*** option.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FJmXTQWM052JhQgtfNzM2%2Fimage.png?alt=media&amp;token=d59b9c0b-a76b-43c4-aebc-4220daa7ba0f" alt=""><figcaption></figcaption></figure>

* Select script by using the checkbox.
* Click the ***Next*** option.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2Fpe1KRtYIHwaimdNVZug7%2Fimage.png?alt=media&amp;token=2115cb77-cd99-45b9-bf97-5c08ea3e29e5" alt=""><figcaption></figcaption></figure>

* The next page opens to Validate the Script. Click the ***Validate*** icon.
* A notification message appears to ensure that the script is valid.
* Once the script gets validated, the ***Next*** option gets enabled. Click the ***Next*** option.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FDhPlugrUQ5KdM9ytZRSw%2Fimage.png?alt=media&amp;token=58552a93-5bc2-4c17-a0c1-92e0b65341c3" alt=""><figcaption></figcaption></figure>

* The following information appears pre-selected except the Start function and Spark Configuration:
  * Enter scheduler name
  * Scheduler description
* Start function: Select a function from the drop-down menu.
* Job basinfo: Select an option from the drop-down menu.
* Spark Config
  * Driver: Provide Core and Memory details. Minimum memory is 512.
  * Executor: Provide Core,  Memory, and Instance details. Minimum memory is 512.
  * Concurrency Policy: Select an option out of Allow, Forbit and Replace from the drop-down.
  * Scheduler time: Set scheduler time using the crone generator. The default time is 1 min.
  * Alert: Choose a scenario out of ***Success*** or ***Failure*** to send alert notification.
* Click the ***Save*** option to register the selected .ipynb file as a Job.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F3fqMtpK8PS2lyQ4Up172%2Fimage.png?alt=media&amp;token=928a3512-f7bb-4871-86e1-55fdb665a4cc" alt=""><figcaption></figcaption></figure>

* A notification message appears.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FPMudHPAwrzT4mACumtCR%2Fimage.png?alt=media&amp;token=d78cacf3-4aa1-4716-8319-517c58b3c55e" alt=""><figcaption></figcaption></figure>

* Navigate to the ***List Jobs*** page within the Data Pipeline module.
* The recently registered DS Notebook gets listed with the same name that was chosen as the Scheduler name for it.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FguYDerEZGOZbSheiVWqJ%2Fimage.png?alt=media&amp;token=5b0bb991-ae3e-4ce4-afd0-1311b8527c3b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*&#x20;

* Select Register as New option for a .ipynb file if you wish to register it once again to the Data Pipeline module. In this case, the same file will be listed twice to the **Job List** page.
  * The user can provide a **Scheduler Name** and **Description** to the file while registering as Job, they won't be pre-selected.

&#x20;      ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FzZJ4x338B06Ku9KWo4xG%2Fimage.png?alt=media\&token=98f08388-f96b-4a83-b40c-cd9cb36735fd)

* *Refer the* [***Data Science Lab Quick Start Flow***](https://docs.bdb.ai/data-science-lab-4/data-science-lab-quick-start-flow) *page to get an overview of the **Data Science Lab** module in nutshell.*&#x20;
  {% endhint %}
