# 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.&#x20;

`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.

![](https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2FV8kCsYa3syLfGeyQhBac%2F9.png?alt=media\&token=74ca6767-4b49-458e-ad7a-3046a5c90a8e)

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