Installation¶
Guidance for installing the Onyx JupyterLab extension, or building it manually for development.
Usage within CLIMB JupyterLab Servers
If you are running a CLIMB JupyterLab server, you do not need to install the extension, as it comes pre-configured in your environment.
If you cannot see the most up-to-date version of the Onyx JupyterLab extension, this is because you will have previously installed your own version manually.
To revert your Onyx JupyterLab extension to the managed up-to-date version, navigate to your terminal and run:
And restart your JupyterLab server.
Install from PyPI¶
This installs the latest version of the extension from PyPI.
Build from source¶
Clone the source code from GitHub:
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
Navigate to the extension directory, and install the extension dependencies with the JupyterLab package manager jlpm
:
Build and install the extension:
You can now launch JupyterLab with:
And the Onyx extension will be ready on the launcher.
Developing the Extension¶
If you wish to develop on the extension, ensure you have followed the above steps to build, install and run the extension.
From there, you can simply modify the extension code and dependencies, and reinstall/rebuild the extension by executing: