# Jupyter Notebook Setup

After completing the Spark installation in order to set jupyter notebook as the default editor we need to the following steps:

### Step 1 (install jupyter notebook)

Open CMD and use the following command to install jupyter notebook

```bash
pip install jupyter
```

### Step 2 (set environment variables)

create the following environment variables:

**PYSPARK\_PYTHON** = {path of your python.exe}

![](/files/3M0c3hJrxtHdYOSCImwv)

**PYSPARK\_DRIVER*****\_*****PYTHON** = jupyter

![](/files/4xvdmm2gvZdWT93xmpJ5)

**PYSPARK\_DRIVER\_PYTHON\_OPTS** = 'notebook'

![](/files/JB9pmpVBmlvZ0lMaDpk4)

That's it!

*You can verify if your setup was successful by typing the following command on cmd*

```bash
pyspark
```

*This should open jupyter notebook in your default browser.*


---

# 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.consoleflare.com/live-data-streaming/master/jupyter-notebook-setup.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.
