The [execute_jupyter_notebook_server.py](https://github.com/allegroai/clearml/blob/master/examples/services/jupyter-service/execute_jupyter_notebook_server.py)
example demonstrates executing a Jupyter Notebook server in **ClearML Agent** services mode. The example script creates
an SSH server, and runs Jupyter Notebook as a subprocess. We integrate **ClearML** into the notebooks running on the Jupyter
Notebook server by passing environment variables to the subprocess, which point to:
* A **ClearML** configuration file
* A **ClearML Server** host configuration (web server, API server, and files server)
* **ClearML** API credentials.
**ClearML** logs the server links and console output, including the notebooks run on the server, in the example script's
Task. When the script runs, it creates an experiment named `Allocate Jupyter Notebook Instance`, which is associated with
the `DevOps` project in the **ClearML Web UI**.
## Running the Jupyter Notebook server service
1. The example script must run at least once before it can execute as a **ClearML Agent** service, because the Task must
be stored in **ClearML Server** in order to be enqueued for a **ClearML Agent** to fetch and execute.
python execute_jupyter_notebook_server.py
1.**ClearML Agent** must be running in services mode and listening to the `services` queue.