Skip to main content

JupyterLab extension for the Onyx Graphical User Interface

Project description

Onyx GUI JupyterLab Extension

Github Actions Status

Overview

A JupyterLab extension for the Onyx Graphical User Interface, with links to the CLIMB-TRE documentation.

This extension is composed of a Python package named climb-onyx-gui (available on PyPI here) that wraps an NPM package (of the same name here) which provides the frontend logic from the Onyx GUI.

Documentation can be found here.

Records in JupyterLab Graphs in JupyterLab Record in JupyterLab

Setup

Install from PyPI

Assuming you have JupyterLab installed:

$ pip install climb-onyx-gui

Otherwise:

$ pip install "jupyterlab>=3" climb-onyx-gui

Build from source

Clone the repository:

$ git clone https://github.com/CLIMB-TRE/onyx-extension.git
$ cd onyx-extension/

Ensure you have Miniconda (or an alternative conda installer) available. Installation instructions for Conda can be found here.

Create and activate a conda environment with JupyterLab and NodeJS:

$ conda create -n jupyterlab-ext -c conda-forge jupyterlab=4 nodejs=20
$ conda activate jupyterlab-ext

Install the extension dependencies with the JupyterLab package manager jlpm:

$ jlpm install

Build the extension and install it:

$ jlpm run build
$ pip install -ve .

Optionally, copy and edit .env.example with ONYX_DOMAIN and ONYX_TOKEN for your development instance of Onyx:

$ cp .env.example .env
$ source .env # After editing

You can now launch JupyterLab with:

$ jupyter lab

And the Onyx extension will be ready on the launcher.

Local development

If you wish to develop the extension, ensure you have followed the above steps to build, install and run the extension from source.

From there, you can simply modify the extension code and dependencies, and reinstall/rebuild the extension by executing:

$ jlpm install && jlpm run build && pip install -ve .

and then relaunching JupyterLab.

Troubleshooting

If you are seeing the frontend extension, but it is not working, check that the server extension is enabled with:

jupyter server extension list

If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed with:

jupyter labextension list

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climb_onyx_gui-0.12.11.tar.gz (900.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

climb_onyx_gui-0.12.11-py3-none-any.whl (818.5 kB view details)

Uploaded Python 3

File details

Details for the file climb_onyx_gui-0.12.11.tar.gz.

File metadata

  • Download URL: climb_onyx_gui-0.12.11.tar.gz
  • Upload date:
  • Size: 900.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for climb_onyx_gui-0.12.11.tar.gz
Algorithm Hash digest
SHA256 511c2e9a474a9f934a78c819ea65eb103ed81bc5809de6cbf5bf28625dd304dd
MD5 e53d9f3d83cbf01d2a8bfe6e86a4a50e
BLAKE2b-256 3e10c33235d0c220c96ff7d86ee72027f64ace361a8fc21f4878b9c13d36b53e

See more details on using hashes here.

Provenance

The following attestation bundles were made for climb_onyx_gui-0.12.11.tar.gz:

Publisher: publish.yml on CLIMB-TRE/onyx-extension

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file climb_onyx_gui-0.12.11-py3-none-any.whl.

File metadata

File hashes

Hashes for climb_onyx_gui-0.12.11-py3-none-any.whl
Algorithm Hash digest
SHA256 87db77da65241ac12481d535853bf78ace3a058980400feab2103477f760aa14
MD5 8f1ff2ddd6644cc880ccd73e799e5142
BLAKE2b-256 50424e742f52b109770f394a7d16df9260303371bfdbb443d1907702e759d774

See more details on using hashes here.

Provenance

The following attestation bundles were made for climb_onyx_gui-0.12.11-py3-none-any.whl:

Publisher: publish.yml on CLIMB-TRE/onyx-extension

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page