# JupyterLab

Bench workspaces require setting a Docker image to use as the image for the workspace. Illumina Connected Analytics (ICA) provides a default Docker image with [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) installed.

JupyterLab supports [Jupyter Notebook documents](https://ipython.org/ipython-doc/dev/notebook/notebook.html#notebook-documents) (.ipynb). Notebook documents consist of a sequence of cells which may contain executable code, markdown, headers, and raw text.

The JupyterLab Docker image contains the following environment variables:

<table><thead><tr><th width="321.58984375">Variable</th><th>Set to</th></tr></thead><tbody><tr><td>ICA_URL</td><td><code>https://ica.illumina.com/ica</code> (ICA server URL)</td></tr><tr><td><del><em>ICA_PROJECT</em></del><em> (Obsolete)</em></td><td>ICA project ID</td></tr><tr><td>ICA_PROJECT_UUID</td><td>Current ICA project UUID</td></tr><tr><td>ICA_SNOWFLAKE_ACCOUNT</td><td>ICA Snowflake (Base) Account ID</td></tr><tr><td>ICA_SNOWFLAKE_DATABASE</td><td>ICA Snowflake (Base) Database ID</td></tr><tr><td>ICA_PROJECT_TENANT_NAME</td><td>Name of the owning tenant of the project where the workspace is created.</td></tr><tr><td>ICA_STARTING_USER_TENANT_NAME</td><td>Name of the tenant of the user which last started the workspace.</td></tr><tr><td>ICA_COHORTS_URL</td><td>URL of the Cohorts web application used to support the Cohort's view</td></tr></tbody></table>

{% hint style="info" %}
To export data from your workspace to your local machine, it is best practice to move the data in your workspace to the `/data/project/` folder so that it becomes available in your project under **projects > your\_project > Data**.
{% endhint %}

## ICA Python Library

Included in the default JupyterLab Docker image is a python library with APIs to perform actions in ICA, such as add data, launch pipelines, and operate on Base tables. The python library is generated from the [ICA Open API specification](https://ica.illumina.com/ica/api/swagger/index.html#/) using [openapi-generator](https://github.com/OpenAPITools/openapi-generator).

The ICA Python library API documentation can be found in folder `/etc/ica/data/ica_v2_api_docs` within the JupyterLab Docker image.

See the [Bench ICA Python Library Tutorial](/tutorials/bench-ica-python-library.md) for examples on using the ICA Python library.


---

# 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://help.ica.illumina.com/project/p-bench/bench-jupyterlab.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.
