Metadata-Version: 2.5
Name: jupyterlab-openbis
Version: 0.5.0
Summary: JupyterLab openBIS extension
Project-URL: Homepage, https://sissource.ethz.ch/sispub/jupyterlab-openbis
Author-email: ID SIS | ETH Zürich <sis.helpdesk@ethz.ch>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: Jupyter,JupyterLab,JupyterLab4,openBIS
Classifier: Framework :: Jupyter
Classifier: Framework :: Jupyter :: JupyterLab
Classifier: Framework :: Jupyter :: JupyterLab :: 4
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: jupyter-openbis-server>=0.5.0
Description-Content-Type: text/markdown

# JupyterLab openBIS extension

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fsissource.ethz.ch%2Fsispub%2Fjupyterlab-openbis/master?urlpath=lab)

## About

JupyterLab openBIS extension is a client-side extension for JupyterLab that enables connectivity with openBIS instances.
It adds three buttons to the notebook toolbar:

- **openBIS connections**: create, authenticate and select an openBIS connection, and set the working directory
- **Download openBIS datasets**: browse the datasets of a sample/experiment and download them into the notebook's working directory
- **Upload openBIS datasets**: upload files (including the notebook itself) as a new dataset

The extension talks to openBIS through the server extension [jupyter-openbis-server](https://pypi.org/project/jupyter-openbis-server/), which is installed as a dependency.

## Requirements

- JupyterLab >= 4.0, < 5
- jupyter-openbis-server >= 0.5.0

## Install

```bash
pip install jupyterlab-openbis
```

This installs the prebuilt extension and the server extension; no Node.js is needed. Restart JupyterLab afterwards.
Check that both parts are active with:

```bash
jupyter labextension list      # jupyterlab-openbis ... enabled OK
jupyter server extension list  # jupyter-openbis-server.server ... enabled OK
```

## Uninstall

```bash
pip uninstall jupyterlab-openbis
```

## Development

Requires Node.js (>= 18) and Python >= 3.9.

```bash
# in a fresh virtual environment
pip install "jupyterlab>=4,<5"
pip install -e /path/to/jupyter-openbis-gui-server   # the server extension

# install this extension in development mode (runs jlpm install + build)
pip install -e .
jupyter labextension develop . --overwrite

# rebuild after changes
jlpm build
# or rebuild automatically while you work (in a second terminal run `jupyter lab`)
jlpm watch
```

Build a release (wheel and sdist, with the prebuilt extension inside):

```bash
pip install build
python -m build
```

The version is set in one place: `version` in `package.json`.

## Compatibility

| jupyterlab-openbis | jupyter-openbis-server | jupyterlab    |
| ------------------ | ---------------------- | ------------- |
| 0.5.x              | >=0.5.0                | >=4.0, <5     |
| 0.3.x              | >=0.4.0, <0.5          | >=3.0, <4     |
| 0.2.x              | >=0.2.1                | >=2.0, <3.0   |
| 0.1.x              | >=0.2.1                | >=1.1.3, <2.0 |
