# Jupyter

Jupyter Notebook allows interactive coding using Python and visualization of results in a notebook-style interface. However, **Jupyter is no longer pre-installed in the Sandbox IVM.** Users need to install it manually or use a pre-configured [fg-python](https://docs.finngen.fi/~/revisions/jw7pXj2oqtDrUgnF1Lm0/working-in-the-sandbox/which-tools-are-available/anaconda-python-module-with-ready-set-of-scientific-packages) module that includes Jupyter.

### How to install and use Jupyter

Install Jupyter using `pip`:

```
pip install jupyter
```

This will install the Jupyter ecosystem, including the classic notebook interface and additional tools like JupyterLab and nbconvert.

**Note:** If you are not installing Jupyter in a [virtual environment](https://docs.finngen.fi/~/revisions/jw7pXj2oqtDrUgnF1Lm0/working-in-the-sandbox/quirks-and-features/python-virtual-environment-in-sandbox), ensure the directory where Jupyter was installed is in your PATH, you can add it temporarily with e.g.

`export PATH=/home/ivm/.local/bin:$PATH`

To start Jupyter notebooks server in Sandbox, run the following command:

```
jupyter notebook
```

After running `jupyter notebook`, it prints a URL like this in the terminal:

```
http://localhost:8888/tree?token=your_token_here
```

Copy this URL and paste it into your browser to open Jupyter.

### Example

Figure 1. Upload example notebook in Sandbox production environment from /finngen/shared/example\_notebook/20210512\_142337/files/tpsipila/notebook\_example/jupyter\_test.ipynb. Click upload to confirm and click jupyter\_test.ipynb to open the notebook.

![](/files/-MhYMb7H3zFu2wtEQ8-4)

[Click here to visit the site with the full Jupyter official documentation.](https://jupyter-notebook.readthedocs.io/en/stable/notebook.html)


---

# 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.finngen.fi/working-in-the-sandbox/which-tools-are-available/jupyter.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.
