# Jupyter Notebook

### Documentation

{% embed url="<https://jupyter-notebook.readthedocs.io/en/stable/index.html>" %}

### Starting Jupyter Notebook

Jupyter Notebook is one of the default applications on the Navigator homepage. Another way is to open Jupyter Notebook is by using Terminal; make sure that you are in the correct directory and then use the following command:

```bash
$ jupyter notebook
```

The Jupyter dashboard should open on your default web browser:

![](/files/-MIN5QJaAV3Um5KXl52f)

Navigate into your desired directory and then select *Python 3* under *New* to create a Python 3 Notework. This will open up an empty notebook, which you can then name by clicking on *Untitled*. To open a pre-existing notebook, simply click on the .iypnb file and make sure that the kernel is connected.

![](/files/-MIN6T1SKDvxMl1Oin0Y)

### Understanding Cells

Within a ***coding cell***, you can write snippets of code. When you run a cell, the code is sent to a ***kernel*** that executes it. Variables can be called or used from previously ran cells.

![](/files/-MIMup1JKZaKk2w38H_g)

To run a cell, you can either click on the *Run* button or use Ctrl/Command - Enter. A running cell is indicated by an asterisk. Once the cell has finished running, the asterisk is replaced by a number that tells you the number of cells that you have ran up to that point.&#x20;

![](/files/-MIPWa9m_f509H1vUl7_)

{% hint style="danger" %}
Be careful about the order. Cells can be executed out of order or moved around and variables can be overwritten.
{% endhint %}

***Markdown cells*** allow you to add documentation to your code. Headings can be created using hashtags: # Heading 1, ## Heading 2.

![](/files/-MIMwmGYEi8SAD2N-Hxj)

To run the markdown cell, click *Run* or use Ctrl/Command - Enter.

### Stopping Jupyter Notebook

To shutdown a running notebook, exit the notebook, select the appropriate box from the directory, and click *Shutdown.*

![](/files/-MIPT3dcc_Aw6Kc9w9JN)

To exit Jupyter Notebook, click *Quit* on the upper left corner or use Ctrl/Command - C in the Terminal.

### Limitations

There are times when coding with an IDE or text editor is preferable over using Jupyter Notebook. Here is a fun video about several limitations of Jupyter Notebook:

{% embed url="<https://www.youtube.com/watch?v=7jiPeIFXb6U>" %}


---

# 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://hs764.gitbook.io/cee-5735/anaconda/jupyter-notebook.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.
