# Steps to create Databricks python notebook and schedule job

**Step I: Create Databricks python notebook**

1. Login to Databricks as an Admin user.

2. In Data Science and Engineering section, click Create -> Notebook.![](/files/CmtnO8t0k02vc7O0eDLf)

3. Provide the following details for notebook:

   * Name
   * Set default language to Python
   * Cluster - the one that was created for Protecto in previous step![](/files/0IYrfTJAOIvykUEPw2Az)

4. Inside the notebook, copy and paste the python code snippet shared with this document.

5. Click Schedule on the top right corner.

**Step II: Schedule job to run on notebook**

Fill all the details like:

1. Job name&#x20;

2. Schedule - Choose scheduled and configure it to run Every Day once at 1:00 with (UTC+00:00) UTC  Timezone.

3. Cluster - Choose the cluster created for Protecto in previous steps.

4. Parameters - Add two parameters:

   * Key: host, value: \<Databricks instance domain>
   * Key: token, value:  \<Admin Personal Access Token> (The PAT should have admin access). We are using this token for getting users and group mapping. The mapping can be extracted only with the Access token of an admin user.

5. Alerts - Provide <help@protecto.ai> for both Success and Failure Alerts.

<img src="/files/pw0rqvkXYaszec5N8Or3" alt="" data-size="original">


---

# 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://help.protecto.ai/getting-started/protecto-overview/introduction/add-new-data-source/databricks/steps-to-create-databricks-python-notebook-and-schedule-job.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.
