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.12.tar.gz (900.6 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.12-py3-none-any.whl (818.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: climb_onyx_gui-0.12.12.tar.gz
  • Upload date:
  • Size: 900.6 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.12.tar.gz
Algorithm Hash digest
SHA256 fdad5b6b83416d096c1b2984a62ebb442c18cfdf3b0be03b960f5959e245dea5
MD5 5af3644492d221f7e5957073d8441f77
BLAKE2b-256 79ea50ea0060a96419ee0e91fb0f6851ed14cf67230c1f39d3cb8864dc866131

See more details on using hashes here.

Provenance

The following attestation bundles were made for climb_onyx_gui-0.12.12.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.12-py3-none-any.whl.

File metadata

File hashes

Hashes for climb_onyx_gui-0.12.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d145ae1baec3c5af463ca072b35b65a79d05fb21e63d30e2089285cf49ae4930
MD5 1cd6d2fac9ae68fe98bac45d5ff0d5c2
BLAKE2b-256 e9bf4df4d93456cc268174b52afe31d916b0ca981aea9f4e6b047a5a3189705b

See more details on using hashes here.

Provenance

The following attestation bundles were made for climb_onyx_gui-0.12.12-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