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.10.tar.gz (900.8 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.10-py3-none-any.whl (818.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: climb_onyx_gui-0.12.10.tar.gz
  • Upload date:
  • Size: 900.8 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.10.tar.gz
Algorithm Hash digest
SHA256 d58ef2169bb2080fd3a525c6f1cebcbde7a75b7e0f97d64c14b5ae253d26e5ed
MD5 cec2ba483afa82fa21b2e638f9dd6343
BLAKE2b-256 5047908ca7727aa83a20ce2aa7b6aa143664c220d8ac8369913417108096bf51

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for climb_onyx_gui-0.12.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c5f0c05a1a774f060e590286f994a7e33eaf165f2681afb16e71521fd73bc541
MD5 c2f57c07c0ffa079bf9e662f6c5ade22
BLAKE2b-256 3e1f32d86dd3698ac74e746a6da91ab59f19d965d7b8cb41a2f0c7145b5a5ce4

See more details on using hashes here.

Provenance

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